From 4258327a7050b90f94c42fe3f9f73926f18a6f35 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 26 Dec 2022 12:57:07 +0100 Subject: [PATCH] add 'top-menu-mouse-over-hidden-label' as window property and use it in the AppMenu component --- lib/Controller/JsController.php | 4 ++++ src/AppMenu.vue | 1 + templates/js/script.php | 1 + 3 files changed, 6 insertions(+) diff --git a/lib/Controller/JsController.php b/lib/Controller/JsController.php index 2ba62ed..3abcdba 100644 --- a/lib/Controller/JsController.php +++ b/lib/Controller/JsController.php @@ -171,6 +171,10 @@ class JsController extends Controller 'avatar' => $avatar, 'top-menu-apps' => $topMenuApps, 'top-side-menu-apps' => $topSideMenuApps, + 'top-menu-mouse-over-hidden-label' => $this->config->getAppValueBool( + 'top-menu-mouse-over-hidden-label', + '0' + ), 'target-blank-apps' => $targetBlankApps, 'settings' => $settings, 'logo' => $this->themingDefaults->getLogo(), diff --git a/src/AppMenu.vue b/src/AppMenu.vue index eb9c10a..9251446 100644 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -101,6 +101,7 @@ export default { }) this.targetBlankApps = window.targetBlankApps + this.hiddenLabels = window.topMenuAppsMouseOverHiddenLabel this.observer = new ResizeObserver(this.resize) this.observer.observe(this.$el) this.resize() diff --git a/templates/js/script.php b/templates/js/script.php index 2607866..3770873 100644 --- a/templates/js/script.php +++ b/templates/js/script.php @@ -27,6 +27,7 @@ if ($_['always-displayed']) { window.topMenuApps = window.topSideMenuApps = window.menuAppsOrder = + window.topMenuAppsMouseOverHiddenLabel = sideMenu.setAttribute('data-bigmenu', '1')