2019-04-12 19:35:29 +00:00
|
|
|
<template>
|
2020-02-28 16:39:47 +00:00
|
|
|
<Popover
|
2019-04-12 19:35:29 +00:00
|
|
|
trigger="click"
|
2019-07-11 15:01:12 +00:00
|
|
|
placement="top"
|
2019-07-11 12:31:02 +00:00
|
|
|
class="extra-button-popover"
|
2020-06-16 14:20:36 +00:00
|
|
|
:bound-to="{ x: 'container' }"
|
2019-04-12 19:35:29 +00:00
|
|
|
>
|
2020-05-08 07:46:00 +00:00
|
|
|
<div
|
|
|
|
slot="content"
|
|
|
|
slot-scope="{close}"
|
|
|
|
>
|
2019-05-26 21:13:08 +00:00
|
|
|
<div class="dropdown-menu">
|
2019-07-07 20:02:09 +00:00
|
|
|
<button
|
2019-09-04 18:11:13 +00:00
|
|
|
v-if="canMute && !status.thread_muted"
|
2019-07-07 20:02:09 +00:00
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="muteConversation"
|
|
|
|
>
|
2020-10-20 21:31:16 +00:00
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
icon="eye-slash"
|
|
|
|
/><span>{{ $t("status.mute_conversation") }}</span>
|
2019-07-07 20:02:09 +00:00
|
|
|
</button>
|
|
|
|
<button
|
2019-09-04 18:11:13 +00:00
|
|
|
v-if="canMute && status.thread_muted"
|
2019-07-07 20:02:09 +00:00
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="unmuteConversation"
|
|
|
|
>
|
2020-10-20 21:31:16 +00:00
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
icon="eye-slash"
|
|
|
|
/><span>{{ $t("status.unmute_conversation") }}</span>
|
2019-07-07 20:02:09 +00:00
|
|
|
</button>
|
2019-07-05 07:17:44 +00:00
|
|
|
<button
|
|
|
|
v-if="!status.pinned && canPin"
|
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="pinStatus"
|
2020-05-08 07:46:00 +00:00
|
|
|
@click="close"
|
2019-07-05 07:17:44 +00:00
|
|
|
>
|
2020-10-20 21:31:16 +00:00
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
icon="thumbtack"
|
|
|
|
/><span>{{ $t("status.pin") }}</span>
|
2019-04-12 19:35:29 +00:00
|
|
|
</button>
|
2019-07-05 07:17:44 +00:00
|
|
|
<button
|
|
|
|
v-if="status.pinned && canPin"
|
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="unpinStatus"
|
2020-05-08 07:46:00 +00:00
|
|
|
@click="close"
|
2019-07-05 07:17:44 +00:00
|
|
|
>
|
2020-10-20 21:31:16 +00:00
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
icon="thumbtack"
|
|
|
|
/><span>{{ $t("status.unpin") }}</span>
|
2019-04-12 19:35:29 +00:00
|
|
|
</button>
|
2020-07-03 19:45:49 +00:00
|
|
|
<button
|
|
|
|
v-if="!status.bookmarked"
|
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="bookmarkStatus"
|
|
|
|
@click="close"
|
|
|
|
>
|
2020-10-20 21:31:16 +00:00
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
:icon="['far', 'bookmark']"
|
|
|
|
/><span>{{ $t("status.bookmark") }}</span>
|
2020-07-03 19:45:49 +00:00
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
v-if="status.bookmarked"
|
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="unbookmarkStatus"
|
|
|
|
@click="close"
|
|
|
|
>
|
2020-10-20 21:31:16 +00:00
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
icon="bookmark"
|
|
|
|
/><span>{{ $t("status.unbookmark") }}</span>
|
2020-07-03 19:45:49 +00:00
|
|
|
</button>
|
2019-07-05 07:17:44 +00:00
|
|
|
<button
|
|
|
|
v-if="canDelete"
|
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="deleteStatus"
|
2020-05-08 07:46:00 +00:00
|
|
|
@click="close"
|
2019-07-05 07:17:44 +00:00
|
|
|
>
|
2020-10-20 21:31:16 +00:00
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
icon="times"
|
|
|
|
/><span>{{ $t("status.delete") }}</span>
|
2019-04-12 19:35:29 +00:00
|
|
|
</button>
|
2020-03-30 17:39:28 +00:00
|
|
|
<button
|
|
|
|
class="dropdown-item dropdown-item-icon"
|
|
|
|
@click.prevent="copyLink"
|
2020-05-08 07:46:00 +00:00
|
|
|
@click="close"
|
2020-03-30 17:39:28 +00:00
|
|
|
>
|
2020-10-20 21:31:16 +00:00
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
icon="share-alt"
|
|
|
|
/><span>{{ $t("status.copy_link") }}</span>
|
2020-03-30 17:39:28 +00:00
|
|
|
</button>
|
2019-04-12 19:35:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-10-19 19:35:46 +00:00
|
|
|
<span slot="trigger">
|
|
|
|
<FAIcon
|
2020-10-28 19:31:16 +00:00
|
|
|
class="ExtraButtons fa-scale-110 fa-old-padding"
|
2020-10-19 19:35:46 +00:00
|
|
|
icon="ellipsis-h"
|
|
|
|
/>
|
|
|
|
</span>
|
2020-02-28 16:39:47 +00:00
|
|
|
</Popover>
|
2019-04-12 19:35:29 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./extra_buttons.js" ></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
|
2020-10-19 19:35:46 +00:00
|
|
|
.ExtraButtons {
|
2019-04-12 19:35:29 +00:00
|
|
|
cursor: pointer;
|
2020-10-19 19:35:46 +00:00
|
|
|
position: static;
|
2019-04-12 19:35:29 +00:00
|
|
|
|
2019-07-11 12:31:02 +00:00
|
|
|
&:hover,
|
|
|
|
.extra-button-popover.open & {
|
2019-04-26 20:30:04 +00:00
|
|
|
color: $fallback--text;
|
|
|
|
color: var(--text, $fallback--text);
|
2019-04-12 19:35:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|