diff --git a/public/js/apps/Cis.js b/public/js/apps/Cis.js index f83f5c5a9..7e1ee0843 100644 --- a/public/js/apps/Cis.js +++ b/public/js/apps/Cis.js @@ -259,12 +259,12 @@ const app = Vue.createApp({ const smallScreen = window.matchMedia("(max-width: 767px)").matches; const touchCapable = ("ontouchstart" in window) || navigator.maxTouchPoints > 0; return smallScreen;// && touchCapable; - } + }, }, provide() { return { // provide injectable & watchable language property language: Vue.computed(() => this.$p.user_language), - isMobile: this.isMobile + isMobile: this.isMobile, } }, methods: { diff --git a/public/js/apps/Cis/Menu.js b/public/js/apps/Cis/Menu.js index 5c03ac128..a8779e32f 100644 --- a/public/js/apps/Cis/Menu.js +++ b/public/js/apps/Cis/Menu.js @@ -136,6 +136,18 @@ const app = Vue.createApp({ } }; }, + computed: { + isMobile() { + const smallScreen = window.matchMedia("(max-width: 767px)").matches; + const touchCapable = ("ontouchstart" in window) || navigator.maxTouchPoints > 0; + return smallScreen;// && touchCapable; + }, + }, + provide() { + return { + isMobile: this.isMobile + } + }, methods: { searchfunction: function(searchsettings) { return this.$api.call(ApiSearchbar.searchCis(searchsettings)); diff --git a/public/js/components/Cis/Menu.js b/public/js/components/Cis/Menu.js index f073d5a38..573e569ec 100644 --- a/public/js/components/Cis/Menu.js +++ b/public/js/components/Cis/Menu.js @@ -30,6 +30,7 @@ export default { menuOpen:true, }; }, + inject: ["isMobile"], provide(){ return{ setActiveEntry: this.setActiveEntry, @@ -58,7 +59,7 @@ export default { }, site_url(){ return FHC_JS_DATA_STORAGE_OBJECT.app_root + FHC_JS_DATA_STORAGE_OBJECT.ci_router; - } + }, }, methods: { fetchMenu() { @@ -112,10 +113,26 @@ export default { }); }, template: /*html*/` - - +
+
+ + + + +
+
+ -