summaryrefslogtreecommitdiff
path: root/src/client/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/ui')
-rw-r--r--src/client/ui/_common_/header.vue9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client/ui/_common_/header.vue b/src/client/ui/_common_/header.vue
index 6b09e3122a..347c60f021 100644
--- a/src/client/ui/_common_/header.vue
+++ b/src/client/ui/_common_/header.vue
@@ -99,7 +99,14 @@ export default defineComponent({
},
menu(ev) {
- const menu = this.info.menu ? this.info.menu() : [];
+ let menu = this.info.menu ? this.info.menu() : [];
+ if (!this.showActions && this.info.actions) {
+ menu = [...this.info.actions.map(x => ({
+ text: x.text,
+ icon: x.icon,
+ action: x.handler
+ })), menu.length > 0 ? null : undefined, ...menu];
+ }
if (this.info.share) {
if (menu.length > 0) menu.push(null);
menu.push({