From 51c2d1fdedd1b175ece68703603c016471527cf3 Mon Sep 17 00:00:00 2001 From: Wolfgang Date: Mon, 1 Dec 2025 18:56:12 +0100 Subject: [PATCH] feat(NcAppNavigationItem): use exact route matching and change active prop to be able to overwrite the vue-router state Signed-off-by: Wolfgang --- .../NcAppNavigationItem.vue | 36 +++++++++++++------ 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/src/components/NcAppNavigationItem/NcAppNavigationItem.vue b/src/components/NcAppNavigationItem/NcAppNavigationItem.vue index f54a8c0e9f..633991486d 100644 --- a/src/components/NcAppNavigationItem/NcAppNavigationItem.vue +++ b/src/components/NcAppNavigationItem/NcAppNavigationItem.vue @@ -315,20 +315,20 @@ Just set the `pinned` prop. class="app-navigation-entry-wrapper">
- +
{{ name }} @@ -356,7 +356,7 @@ Just set the `pinned` prop. ref="editingInput" v-model="editingValue" :placeholder="editPlaceholder !== '' ? editPlaceholder : name" - :primary="(to && isActive) || active" + :primary="isActiveLink(isExactActive)" @cancel="cancelEditing" @confirm="handleEditingDone" /> @@ -391,7 +391,7 @@ Just set the `pinned` prop. :open="menuOpen" :force-menu="forceMenu" :default-icon="menuIcon" - :variant="(to && isActive) || active ? 'tertiary-on-primary' : 'tertiary'" + :variant="isActiveLink(isExactActive) ? 'tertiary-on-primary' : 'tertiary'" @update:open="onMenuToggle">