Add thread muting to context menu of status

This commit is contained in:
shpuld 2019-07-07 23:02:09 +03:00
parent 54b0f90133
commit 7ed9d17ce7
8 changed files with 69 additions and 6 deletions

View file

@ -1,6 +1,6 @@
<template>
<Popper
v-if="enabled && showPopper"
v-if="showPopper"
trigger="click"
append-to-body
:options="{
@ -14,6 +14,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"