Skip to content
Snippets Groups Projects
Commit d7647be8 authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

Merge branch '645' into 'develop'

Show "Mute Conversation" menu item and three dot button to users and only if needed

Closes #645

See merge request !922
parents 6504d8ca 65579796
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!922Show "Mute Conversation" menu item and three dot button to users and only if needed
Pipeline #16205 passed
......@@ -40,6 +40,9 @@ const ExtraButtons = {
},
canPin () {
return this.ownStatus && (this.status.visibility === 'public' || this.status.visibility === 'unlisted')
},
canMute () {
return !!this.currentUser
}
}
}
......
<template>
<v-popover
v-if="canDelete || canMute || canPin"
trigger="click"
placement="top"
class="extra-button-popover"
......@@ -9,14 +10,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