2019-04-13 05:35:29 +10:00
|
|
|
<template>
|
2020-02-29 03:39:47 +11:00
|
|
|
<Popover
|
2019-04-13 05:35:29 +10:00
|
|
|
trigger="click"
|
2019-07-12 01:01:12 +10:00
|
|
|
placement="top"
|
2019-07-11 22:31:02 +10:00
|
|
|
class="extra-button-popover"
|
2019-04-13 05:35:29 +10:00
|
|
|
>
|
2020-02-29 03:39:47 +11:00
|
|
|
<div slot="content">
|
2019-05-27 07:13:08 +10:00
|
|
|
<div class="dropdown-menu">
|
2019-07-08 06:02:09 +10:00
|
|
|
<button
|
2019-09-05 04:11:13 +10:00
|
|
|
v-if="canMute && !status.thread_muted"
|
2019-07-08 06:02:09 +10:00
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="muteConversation"
|
|
|
|
>
|
|
|
|
<i class="icon-eye-off" /><span>{{ $t("status.mute_conversation") }}</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2019-09-05 04:11:13 +10:00
|
|
|
v-if="canMute && status.thread_muted"
|
2019-07-08 06:02:09 +10:00
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="unmuteConversation"
|
|
|
|
>
|
|
|
|
<i class="icon-eye-off" /><span>{{ $t("status.unmute_conversation") }}</span>
|
|
|
|
</button>
|
2019-07-05 17:17:44 +10:00
|
|
|
<button
|
|
|
|
v-if="!status.pinned && canPin"
|
2019-07-12 01:50:56 +10:00
|
|
|
v-close-popover
|
2019-07-05 17:17:44 +10:00
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="pinStatus"
|
|
|
|
>
|
|
|
|
<i class="icon-pin" /><span>{{ $t("status.pin") }}</span>
|
2019-04-13 05:35:29 +10:00
|
|
|
</button>
|
2019-07-05 17:17:44 +10:00
|
|
|
<button
|
|
|
|
v-if="status.pinned && canPin"
|
2019-07-12 01:50:56 +10:00
|
|
|
v-close-popover
|
2019-07-05 17:17:44 +10:00
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="unpinStatus"
|
|
|
|
>
|
|
|
|
<i class="icon-pin" /><span>{{ $t("status.unpin") }}</span>
|
2019-04-13 05:35:29 +10:00
|
|
|
</button>
|
2019-07-05 17:17:44 +10:00
|
|
|
<button
|
|
|
|
v-if="canDelete"
|
2019-07-12 01:50:56 +10:00
|
|
|
v-close-popover
|
2019-07-05 17:17:44 +10:00
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="deleteStatus"
|
|
|
|
>
|
|
|
|
<i class="icon-cancel" /><span>{{ $t("status.delete") }}</span>
|
2019-04-13 05:35:29 +10:00
|
|
|
</button>
|
2020-03-31 04:39:28 +11:00
|
|
|
<button
|
|
|
|
v-close-popover
|
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="copyLink"
|
|
|
|
>
|
|
|
|
<i class="icon-share" /><span>{{ $t("status.copy_link") }}</span>
|
|
|
|
</button>
|
2019-04-13 05:35:29 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-29 03:39:47 +11:00
|
|
|
<i
|
|
|
|
slot="trigger"
|
|
|
|
class="icon-ellipsis button-icon"
|
|
|
|
/>
|
|
|
|
</Popover>
|
2019-04-13 05:35:29 +10:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./extra_buttons.js" ></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
|
|
|
|
.icon-ellipsis {
|
|
|
|
cursor: pointer;
|
|
|
|
|
2019-07-11 22:31:02 +10:00
|
|
|
&:hover,
|
|
|
|
.extra-button-popover.open & {
|
2019-04-27 06:30:04 +10:00
|
|
|
color: $fallback--text;
|
|
|
|
color: var(--text, $fallback--text);
|
2019-04-13 05:35:29 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|