commit: facf076d47207117afe3c220ad60313c8fd5367e
parent: 5bf208f2d1de1e20964ab06b04561c170867090c
Author: HJ <30-hj@users.noreply.git.pleroma.social>
Date: Sun, 19 May 2019 14:38:57 +0000
Merge branch '542' into 'develop'
Hide three dot menu button if has no items
Closes #542
See merge request pleroma/pleroma-fe!797
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js
@@ -54,6 +54,9 @@ const ExtraButtons = {
},
canPin () {
return this.ownStatus && (this.status.visibility === 'public' || this.status.visibility === 'unlisted')
+ },
+ enabled () {
+ return this.canPin || this.canDelete
}
}
}
diff --git a/src/components/extra_buttons/extra_buttons.vue b/src/components/extra_buttons/extra_buttons.vue
@@ -3,7 +3,7 @@
trigger="click"
@hide='showDropDown = false'
append-to-body
- v-if="showPopper"
+ v-if="enabled && showPopper"
:options="{
placement: 'top',
modifiers: {