From 8042f3ae0b667f5caff1b4147ce828a101f4b426 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Wed, 2 Oct 2024 14:22:34 +0200 Subject: [PATCH] makes the menu point active with the url matches --- public/js/components/Cis/Menu.js | 11 +++++- public/js/components/Cis/Menu/Entry.js | 46 +++++++++++++++++++++++--- 2 files changed, 52 insertions(+), 5 deletions(-) diff --git a/public/js/components/Cis/Menu.js b/public/js/components/Cis/Menu.js index f44819011..92e189af3 100755 --- a/public/js/components/Cis/Menu.js +++ b/public/js/components/Cis/Menu.js @@ -21,9 +21,17 @@ export default { entries: [], activeEntry:null, url:null, + highestMatchingUrlCount:0, }; }, methods:{ + checkHighestMatchingUrlCount(count){ + if(count > this.highestMatchingUrlCount) + { + this.highestMatchingUrlCount = count; + } + }, + setActiveEntry(content_id){ this.activeEntry = content_id; } @@ -34,6 +42,7 @@ export default { template: /*html*/`