From 4deed45f298bf95952a5aa957cfc0a032699d474 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Thu, 26 Feb 2026 15:53:41 +0100 Subject: [PATCH] prepend extend_app js to customJSModules array, use FhcApps in Dashboard/Fhc App --- application/helpers/hlp_header_helper.php | 2 +- public/js/apps/Dashboard/Fhc.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/application/helpers/hlp_header_helper.php b/application/helpers/hlp_header_helper.php index 86c7dae63..2d425500d 100644 --- a/application/helpers/hlp_header_helper.php +++ b/application/helpers/hlp_header_helper.php @@ -298,7 +298,7 @@ function extendableApps($includes) if(is_readable(FHCPATH . $extend_js)) { - array_push($includes['customJSModules'], $extend_js); + array_unshift($includes['customJSModules'], $extend_js); } if(is_readable(FHCPATH . $extend_css)) diff --git a/public/js/apps/Dashboard/Fhc.js b/public/js/apps/Dashboard/Fhc.js index 093ad815b..3dd2f3fc7 100644 --- a/public/js/apps/Dashboard/Fhc.js +++ b/public/js/apps/Dashboard/Fhc.js @@ -321,6 +321,9 @@ const app = Vue.createApp({ // kind of a bandaid for bad css on some pages to avoid horizontal scroll setScrollbarWidth(); +FhcApps.router.makeExtendable(router); +FhcApps.makeExtendable(app); + app.use(router); app.use(primevue.config.default, { zIndex: {