2019-04-12 12:35:29 -07:00
|
|
|
<template>
|
|
|
|
<Popper
|
|
|
|
trigger="click"
|
|
|
|
@hide='showDropDown = false'
|
|
|
|
append-to-body
|
2019-04-14 19:27:16 -07:00
|
|
|
v-if="showPopper"
|
2019-04-12 12:35:29 -07:00
|
|
|
:options="{
|
|
|
|
placement: 'top',
|
|
|
|
modifiers: {
|
|
|
|
arrow: { enabled: true },
|
|
|
|
offset: { offset: '0, 5px' },
|
|
|
|
}
|
|
|
|
}"
|
|
|
|
>
|
|
|
|
<div class="popper-wrapper">
|
|
|
|
<div class="dropdown-menu">
|
2019-04-14 10:18:56 -07:00
|
|
|
<button class="dropdown-item dropdown-item-icon" @click.prevent="pinStatus" v-if="!status.pinned && canPin">
|
2019-04-12 12:35:29 -07:00
|
|
|
<i class="icon-pin"></i><span>{{$t("status.pin")}}</span>
|
|
|
|
</button>
|
2019-04-14 10:18:56 -07:00
|
|
|
<button class="dropdown-item dropdown-item-icon" @click.prevent="unpinStatus" v-if="status.pinned && canPin">
|
2019-04-12 12:35:29 -07:00
|
|
|
<i class="icon-pin"></i><span>{{$t("status.unpin")}}</span>
|
|
|
|
</button>
|
|
|
|
<button class="dropdown-item dropdown-item-icon" @click.prevent="deleteStatus" v-if="canDelete">
|
|
|
|
<i class="icon-cancel"></i><span>{{$t("status.delete")}}</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="button-icon" slot="reference" @click="toggleMenu">
|
|
|
|
<i class='icon-ellipsis' :class="{'icon-clicked': showDropDown}"></i>
|
|
|
|
</div>
|
|
|
|
</Popper>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./extra_buttons.js" ></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
|
|
|
|
.icon-ellipsis {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover, &.icon-clicked {
|
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>
|