Rename canAuthAction to loggedIn

This commit is contained in:
smitten 2023-07-26 10:02:26 -04:00
parent 0e7f4586ed
commit b842f17fd2
2 changed files with 8 additions and 7 deletions

View file

@ -18,6 +18,7 @@ import {
} from '@fortawesome/free-regular-svg-icons'
import { mapState } from 'vuex'
// TODO - Consider another icon here? Some kind of node graph
// const facFediverse = {
// prefix: "fac",
// iconName: "fediverse",
@ -189,7 +190,7 @@ const ExtraButtons = {
canPin () {
return this.ownStatus && (this.status.visibility === 'public' || this.status.visibility === 'unlisted')
},
canAuthAction () {
loggedIn () {
return !!this.currentUser
},
canTranslate () {

View file

@ -10,7 +10,7 @@
<template v-slot:content="{close}">
<div class="dropdown-menu">
<button
v-if="canAuthAction && !status.thread_muted"
v-if="loggedIn && !status.thread_muted"
class="button-default dropdown-item dropdown-item-icon"
@click.prevent="muteConversation"
>
@ -20,7 +20,7 @@
/><span>{{ $t("status.mute_conversation") }}</span>
</button>
<button
v-if="canAuthAction && status.thread_muted"
v-if="loggedIn && status.thread_muted"
class="button-default dropdown-item dropdown-item-icon"
@click.prevent="unmuteConversation"
>
@ -52,7 +52,7 @@
/><span>{{ $t("status.unpin") }}</span>
</button>
<button
v-if="canAuthAction && !status.bookmarked"
v-if="loggedIn && !status.bookmarked"
class="button-default dropdown-item dropdown-item-icon"
@click.prevent="bookmarkStatus"
@click="close"
@ -63,7 +63,7 @@
/><span>{{ $t("status.bookmark") }}</span>
</button>
<button
v-if="canAuthAction && status.bookmarked"
v-if="loggedIn && status.bookmarked"
class="button-default dropdown-item dropdown-item-icon"
@click.prevent="unbookmarkStatus"
@click="close"
@ -128,7 +128,7 @@
/><span>{{ $t("status.copy_link") }}</span>
</button>
<button
v-if="canAuthAction"
v-if="loggedIn"
class="button-default dropdown-item dropdown-item-icon"
@click.prevent="copyFediLink"
@click="close"
@ -151,7 +151,7 @@
/><span>{{ $t("status.external_source") }}</span>
</a>
<a
v-if="!canAuthAction"
v-if="!loggedIn"
class="button-default dropdown-item dropdown-item-icon"
title="Source"
:href="fediLink"