Skip to content
Snippets Groups Projects
Commit 92a0c475 authored by Tae Hoon's avatar Tae Hoon
Browse files

hide mute conversation button to guests

parent 6504d8ca
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,9 @@ const ExtraButtons = {
},
canPin () {
return this.ownStatus && (this.status.visibility === 'public' || this.status.visibility === 'unlisted')
},
canMute () {
return !!this.currentUser
}
}
}
......
......@@ -9,14 +9,14 @@
<div slot="popover">
<div class="dropdown-menu">
<button
v-if="!status.muted"
v-if="canMute && !status.muted"
class="dropdown-item dropdown-item-icon"
@click.prevent="muteConversation"
>
<i class="icon-eye-off" /><span>{{ $t("status.mute_conversation") }}</span>
</button>
<button
v-if="status.muted"
v-if="canMute && status.muted"
class="dropdown-item dropdown-item-icon"
@click.prevent="unmuteConversation"
>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment