2019-04-12 12:35:29 -07:00
|
|
|
<template>
|
2020-02-28 08:39:47 -08:00
|
|
|
<Popover
|
2019-04-12 12:35:29 -07:00
|
|
|
trigger="click"
|
2019-07-11 08:01:12 -07:00
|
|
|
placement="top"
|
2019-07-11 05:31:02 -07:00
|
|
|
class="extra-button-popover"
|
2020-06-16 07:20:36 -07:00
|
|
|
:bound-to="{ x: 'container' }"
|
2019-04-12 12:35:29 -07:00
|
|
|
>
|
2020-05-08 00:46:00 -07:00
|
|
|
<div
|
|
|
|
slot="content"
|
|
|
|
slot-scope="{close}"
|
|
|
|
>
|
2019-05-26 14:13:08 -07:00
|
|
|
<div class="dropdown-menu">
|
2019-07-07 13:02:09 -07:00
|
|
|
<button
|
2019-09-04 11:11:13 -07:00
|
|
|
v-if="canMute && !status.thread_muted"
|
2019-07-07 13:02:09 -07: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-04 11:11:13 -07:00
|
|
|
v-if="canMute && status.thread_muted"
|
2019-07-07 13:02:09 -07: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 00:17:44 -07:00
|
|
|
<button
|
|
|
|
v-if="!status.pinned && canPin"
|
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="pinStatus"
|
2020-05-08 00:46:00 -07:00
|
|
|
@click="close"
|
2019-07-05 00:17:44 -07:00
|
|
|
>
|
|
|
|
<i class="icon-pin" /><span>{{ $t("status.pin") }}</span>
|
2019-04-12 12:35:29 -07:00
|
|
|
</button>
|
2019-07-05 00:17:44 -07:00
|
|
|
<button
|
|
|
|
v-if="status.pinned && canPin"
|
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="unpinStatus"
|
2020-05-08 00:46:00 -07:00
|
|
|
@click="close"
|
2019-07-05 00:17:44 -07:00
|
|
|
>
|
|
|
|
<i class="icon-pin" /><span>{{ $t("status.unpin") }}</span>
|
2019-04-12 12:35:29 -07:00
|
|
|
</button>
|
2020-07-03 12:45:49 -07:00
|
|
|
<button
|
|
|
|
v-if="!status.bookmarked"
|
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="bookmarkStatus"
|
|
|
|
@click="close"
|
|
|
|
>
|
|
|
|
<i class="icon-bookmark-empty" /><span>{{ $t("status.bookmark") }}</span>
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
v-if="status.bookmarked"
|
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="unbookmarkStatus"
|
|
|
|
@click="close"
|
|
|
|
>
|
|
|
|
<i class="icon-bookmark" /><span>{{ $t("status.unbookmark") }}</span>
|
|
|
|
</button>
|
2019-07-05 00:17:44 -07:00
|
|
|
<button
|
|
|
|
v-if="canDelete"
|
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="deleteStatus"
|
2020-05-08 00:46:00 -07:00
|
|
|
@click="close"
|
2019-07-05 00:17:44 -07:00
|
|
|
>
|
|
|
|
<i class="icon-cancel" /><span>{{ $t("status.delete") }}</span>
|
2019-04-12 12:35:29 -07:00
|
|
|
</button>
|
2020-03-30 10:39:28 -07:00
|
|
|
<button
|
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="copyLink"
|
2020-05-08 00:46:00 -07:00
|
|
|
@click="close"
|
2020-03-30 10:39:28 -07:00
|
|
|
>
|
|
|
|
<i class="icon-share" /><span>{{ $t("status.copy_link") }}</span>
|
|
|
|
</button>
|
2019-04-12 12:35:29 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-28 08:39:47 -08:00
|
|
|
<i
|
|
|
|
slot="trigger"
|
|
|
|
class="icon-ellipsis button-icon"
|
|
|
|
/>
|
|
|
|
</Popover>
|
2019-04-12 12:35:29 -07:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./extra_buttons.js" ></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
|
|
|
|
.icon-ellipsis {
|
|
|
|
cursor: pointer;
|
|
|
|
|
2019-07-11 05:31:02 -07:00
|
|
|
&:hover,
|
|
|
|
.extra-button-popover.open & {
|
2019-04-26 13:30:04 -07:00
|
|
|
color: $fallback--text;
|
|
|
|
color: var(--text, $fallback--text);
|
2019-04-12 12:35:29 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|