Compare commits

...

4 Commits

Author SHA1 Message Date
Robert Ferrús 567ec689ad Merge branch 'dev' into 8077-sumDefaulterFront
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-18 07:03:04 +00:00
Jon Elias 80770b1165 Merge pull request '#8185 Fix LeftMenu to avoid duplicates' (!952) from 8185-DuplicateLeftMenu into dev
gitea/salix-front/pipeline/head This commit looks good Details
Reviewed-on: #952
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2024-11-18 06:33:54 +00:00
Jon Elias 3d8aa3cff9 Merge branch 'dev' into 8185-DuplicateLeftMenu
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-18 06:21:42 +00:00
Jon Elias 2bc219a09b refactor: refs #8185 modified LeftMenu to avoid duplicates
gitea/salix-front/pipeline/pr-dev This commit looks good Details
2024-11-18 06:59:09 +01:00
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,7 @@ const props = defineProps({
default: 'main',
},
});
const initialized = ref(false);
const items = ref([]);
const expansionItemElements = reactive({});
const pinnedModules = computed(() => {
@ -61,11 +61,13 @@ const filteredPinnedModules = computed(() => {
onMounted(async () => {
await navigation.fetchPinned();
getRoutes();
initialized.value = true;
});
watch(
() => route.matched,
() => {
if (!initialized.value) return;
items.value = [];
getRoutes();
},