Merge branch '542' into 'develop'
Hide three dot menu button if has no items Closes #542 See merge request pleroma/pleroma-fe!797
This commit is contained in:
commit
facf076d47
2 changed files with 4 additions and 1 deletions
|
@ -54,6 +54,9 @@ const ExtraButtons = {
|
||||||
},
|
},
|
||||||
canPin () {
|
canPin () {
|
||||||
return this.ownStatus && (this.status.visibility === 'public' || this.status.visibility === 'unlisted')
|
return this.ownStatus && (this.status.visibility === 'public' || this.status.visibility === 'unlisted')
|
||||||
|
},
|
||||||
|
enabled () {
|
||||||
|
return this.canPin || this.canDelete
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
trigger="click"
|
trigger="click"
|
||||||
@hide='showDropDown = false'
|
@hide='showDropDown = false'
|
||||||
append-to-body
|
append-to-body
|
||||||
v-if="showPopper"
|
v-if="enabled && showPopper"
|
||||||
:options="{
|
:options="{
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
modifiers: {
|
modifiers: {
|
||||||
|
|
Loading…
Reference in a new issue