This commit is contained in:
parent
c1a410384f
commit
566f7df2d0
|
@ -64,6 +64,9 @@ const pinnedModulesRef = ref();
|
||||||
@click="pinnedModulesRef.redirect($route.params.id)"
|
@click="pinnedModulesRef.redirect($route.params.id)"
|
||||||
icon="more_up"
|
icon="more_up"
|
||||||
>
|
>
|
||||||
|
<QTooltip>
|
||||||
|
{{ t('Go to Salix') }}
|
||||||
|
</QTooltip>
|
||||||
</QBtn>
|
</QBtn>
|
||||||
<QBtn id="pinnedModules" icon="apps" flat dense rounded>
|
<QBtn id="pinnedModules" icon="apps" flat dense rounded>
|
||||||
<QTooltip bottom>
|
<QTooltip bottom>
|
||||||
|
@ -89,3 +92,10 @@ const pinnedModulesRef = ref();
|
||||||
</QToolbar>
|
</QToolbar>
|
||||||
</QHeader>
|
</QHeader>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<i18n>
|
||||||
|
en:
|
||||||
|
Go to Salix: Go to Salix
|
||||||
|
es:
|
||||||
|
Go to Salix: Ir a Salix
|
||||||
|
</i18n>
|
||||||
|
|
|
@ -24,17 +24,17 @@ async function redirect() {
|
||||||
let section = route.path.substring(1);
|
let section = route.path.substring(1);
|
||||||
if (!route.path.includes('/')) return (window.location.href = await getUrl(section));
|
if (!route.path.includes('/')) return (window.location.href = await getUrl(section));
|
||||||
section = section.substring(0, section.indexOf('/'));
|
section = section.substring(0, section.indexOf('/'));
|
||||||
if (route?.params?.id) {
|
if (route?.params?.id)
|
||||||
window.location.href = await getUrl(`${section}/${route.params.id}/summary`);
|
return (window.location.href = await getUrl(
|
||||||
} else {
|
`${section}/${route.params.id}/summary`
|
||||||
window.location.href = await getUrl(section + 'dashboard');
|
));
|
||||||
}
|
return (window.location.href = await getUrl(section + 'dashboard'));
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<QMenu anchor="bottom left" max-width="300px" max-height="400px">
|
<QMenu anchor="bottom left" max-width="300px" max-height="400px">
|
||||||
<div v-if="pinnedModules.length" class="row justify-around q-pa-md">
|
<div v-if="pinnedModules.length >= 0" class="row justify-around q-pa-md">
|
||||||
<QBtn
|
<QBtn
|
||||||
flat
|
flat
|
||||||
stack
|
stack
|
||||||
|
|
Loading…
Reference in New Issue