diff options
| author | shpuld <shp@cock.li> | 2019-07-07 23:02:09 +0300 |
|---|---|---|
| committer | shpuld <shp@cock.li> | 2019-07-07 23:02:09 +0300 |
| commit | 7ed9d17ce745abc38a27d4994452a136357aba46 (patch) | |
| tree | 78d626fc8cea0b316440f62e5e02a1de2d66e228 /src/components/extra_buttons/extra_buttons.vue | |
| parent | 54b0f9013388b24769c587abbf7ca76849ce9570 (diff) | |
Add thread muting to context menu of status
Diffstat (limited to 'src/components/extra_buttons/extra_buttons.vue')
| -rw-r--r-- | src/components/extra_buttons/extra_buttons.vue | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/components/extra_buttons/extra_buttons.vue b/src/components/extra_buttons/extra_buttons.vue index 8e24e9a5..5027be1b 100644 --- a/src/components/extra_buttons/extra_buttons.vue +++ b/src/components/extra_buttons/extra_buttons.vue @@ -1,6 +1,6 @@ <template> <Popper - v-if="enabled && showPopper" + v-if="showPopper" trigger="click" append-to-body :options="{ @@ -15,6 +15,20 @@ <div class="popper-wrapper"> <div class="dropdown-menu"> <button + v-if="!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" + class="dropdown-item dropdown-item-icon" + @click.prevent="unmuteConversation" + > + <i class="icon-eye-off" /><span>{{ $t("status.unmute_conversation") }}</span> + </button> + <button v-if="!status.pinned && canPin" class="dropdown-item dropdown-item-icon" @click.prevent="pinStatus" |
