proper toggle for pinning
This commit is contained in:
parent
96fd7f91c4
commit
e78f82d674
3 changed files with 18 additions and 10 deletions
|
@ -10,6 +10,7 @@ import {
|
||||||
faMinus,
|
faMinus,
|
||||||
faCheck,
|
faCheck,
|
||||||
faTimes,
|
faTimes,
|
||||||
|
faWrench,
|
||||||
|
|
||||||
faReply,
|
faReply,
|
||||||
faRetweet,
|
faRetweet,
|
||||||
|
@ -33,6 +34,7 @@ library.add(
|
||||||
faMinus,
|
faMinus,
|
||||||
faCheck,
|
faCheck,
|
||||||
faTimes,
|
faTimes,
|
||||||
|
faWrench,
|
||||||
|
|
||||||
faReply,
|
faReply,
|
||||||
faRetweet,
|
faRetweet,
|
||||||
|
@ -279,7 +281,7 @@ const StatusActionButtons = {
|
||||||
emits: ['toggleReplying'],
|
emits: ['toggleReplying'],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
showPin: true,
|
showPin: false,
|
||||||
showingConfirmDialog: false,
|
showingConfirmDialog: false,
|
||||||
currentConfirmTitle: '',
|
currentConfirmTitle: '',
|
||||||
currentConfirmOkText: '',
|
currentConfirmOkText: '',
|
||||||
|
|
|
@ -99,14 +99,6 @@
|
||||||
.pin-action-button {
|
.pin-action-button {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: var(--__horizontal-gap) var(--__horizontal-gap);
|
padding: var(--__horizontal-gap) var(--__horizontal-gap);
|
||||||
|
|
||||||
&::before {
|
|
||||||
content: "";
|
|
||||||
height: 1em;
|
|
||||||
width: 1px;
|
|
||||||
border-left: 1px solid var(--icon);
|
|
||||||
margin-right: 0.5em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,6 +89,20 @@
|
||||||
class="dropdown-menu extra-action-buttons"
|
class="dropdown-menu extra-action-buttons"
|
||||||
role="menu"
|
role="menu"
|
||||||
>
|
>
|
||||||
|
<div class="menu-item dropdown-item extra-action dropdown-item-icon">
|
||||||
|
<button
|
||||||
|
class="main-button"
|
||||||
|
role="menuitem"
|
||||||
|
:tabindex="0"
|
||||||
|
@click.stop="showPin = !showPin"
|
||||||
|
>
|
||||||
|
<FAIcon
|
||||||
|
class="fa-scale-110"
|
||||||
|
fixed-width
|
||||||
|
icon="wrench"
|
||||||
|
/><span>{{ $t('nav.edit_pinned') }}</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
v-for="button in extraButtons"
|
v-for="button in extraButtons"
|
||||||
:key="button.name"
|
:key="button.name"
|
||||||
|
@ -121,7 +135,7 @@
|
||||||
<FAIcon
|
<FAIcon
|
||||||
v-if="showPin && currentUser"
|
v-if="showPin && currentUser"
|
||||||
fixed-width
|
fixed-width
|
||||||
class="fa-scale-110 veryfaint"
|
class="fa-scale-110"
|
||||||
transform="rotate-45"
|
transform="rotate-45"
|
||||||
icon="thumbtack"
|
icon="thumbtack"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue