aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-05-16 13:45:18 -0400
committertaehoon <th.dev91@gmail.com>2019-05-19 09:16:47 -0400
commit07d0143bda8d35b9743731711a2085f8399168c5 (patch)
tree3d0bac8c68e3c2e00706b7585f1641411ce2d52e /src
parent5bf208f2d1de1e20964ab06b04561c170867090c (diff)
hide three dot menu button if has no items
Diffstat (limited to 'src')
-rw-r--r--src/components/extra_buttons/extra_buttons.js3
-rw-r--r--src/components/extra_buttons/extra_buttons.vue2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js
index f70ecd1d..528da301 100644
--- 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
index 38e933bb..ef11138d 100644
--- 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: {