feat: refs #7119 update CardDescriptor streamline module navigation
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-12-27 17:11:56 +01:00
parent b61badc723
commit 5027b9a174
3 changed files with 2 additions and 11 deletions

View File

@ -99,13 +99,6 @@ function getValueFromPath(path) {
}
const emit = defineEmits(['onFetch']);
const iconModule = computed(() => route.matched[1].meta.icon);
const toModule = computed(() =>
route.matched[1].path.split('/').length > 2
? route.matched[1].redirect
: route.matched[1].children[0].redirect
);
</script>
<template>
@ -118,10 +111,10 @@ const toModule = computed(() =>
flat
dense
size="md"
:icon="iconModule"
:icon="$route.matched[1].meta.icon"
color="white"
class="link"
:to="$attrs['to-module'] ?? toModule"
:to="`/${$route.meta.moduleName}`"
>
<QTooltip>
{{ t('globals.goToModuleIndex') }}

View File

@ -57,7 +57,6 @@ const { openConfirmationModal } = useVnConfirm();
:title="data.title"
:subtitle="data.subtitle"
:summary="$props.summary"
:to-module="{ name: 'WorkerDepartment' }"
@on-fetch="
(data) => {
department = data;

View File

@ -29,7 +29,6 @@ const filter = {
:url="`Parkings/${entityId}`"
title="code"
:filter="filter"
:to-module="{ name: 'ParkingList' }"
>
<template #body="{ entity }">
<VnLv :label="t('globals.code')" :value="entity.code" />