From 01b7b2adeb0abbb1c1804e394dfe62b0bbbf7a12 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 3 Mar 2025 08:26:02 +0100 Subject: [PATCH] refactor: refs #8045 modified icon and module const --- src/components/ui/CardDescriptor.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 59d362463..744f84e6d 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -127,7 +127,7 @@ function copyIdText(id) { const emit = defineEmits(['onFetch']); -const iconModuleV = computed(() => { +const iconModule = computed(() => { moduleName.value = getName(); if (isSameModuleName) { return router.options.routes[1].children.find((r) => r.name === moduleName.value) @@ -137,7 +137,7 @@ const iconModuleV = computed(() => { } }); -const toModuleV = computed(() => { +const toModule = computed(() => { moduleName.value = getName(); if (isSameModuleName) { return router.options.routes[1].children.find((r) => r.name === moduleName.value) @@ -160,10 +160,10 @@ const toModuleV = computed(() => { flat dense size="md" - :icon="iconModuleV" + :icon="iconModule" color="white" class="link" - :to="toModuleV" + :to="toModule" > {{ t('globals.goToModuleIndex') }} @@ -252,7 +252,6 @@ const toModuleV = computed(() => { -