#8045: Modified redirect from CardDescriptor #1495

Merged
jon merged 18 commits from 8045-FixIconDescriptorRedirect into dev 2025-03-07 12:09:21 +00:00
1 changed files with 4 additions and 5 deletions
Showing only changes of commit 01b7b2adeb - Show all commits

View File

@ -127,7 +127,7 @@ function copyIdText(id) {
const emit = defineEmits(['onFetch']); const emit = defineEmits(['onFetch']);
const iconModuleV = computed(() => { const iconModule = computed(() => {
Outdated
Review

Pq la V?

Pq la `V`?
moduleName.value = getName(); moduleName.value = getName();
if (isSameModuleName) { if (isSameModuleName) {
return router.options.routes[1].children.find((r) => r.name === moduleName.value) 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(); moduleName.value = getName();
if (isSameModuleName) { if (isSameModuleName) {
return router.options.routes[1].children.find((r) => r.name === moduleName.value) return router.options.routes[1].children.find((r) => r.name === moduleName.value)
@ -160,10 +160,10 @@ const toModuleV = computed(() => {
flat flat
dense dense
size="md" size="md"
:icon="iconModuleV" :icon="iconModule"
color="white" color="white"
class="link" class="link"
:to="toModuleV" :to="toModule"
> >
<QTooltip> <QTooltip>
{{ t('globals.goToModuleIndex') }} {{ t('globals.goToModuleIndex') }}
@ -252,7 +252,6 @@ const toModuleV = computed(() => {
</div> </div>
<slot name="after" /> <slot name="after" />
</template> </template>
<!-- Skeleton -->
<SkeletonDescriptor v-if="!entity || isLoading" /> <SkeletonDescriptor v-if="!entity || isLoading" />
</div> </div>
<QInnerLoading <QInnerLoading