refs #5989 tooltip, refact function,
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Satorres 2023-08-09 10:02:48 +02:00
parent c1a410384f
commit 566f7df2d0
2 changed files with 16 additions and 6 deletions

View File

@ -64,6 +64,9 @@ const pinnedModulesRef = ref();
@click="pinnedModulesRef.redirect($route.params.id)"
icon="more_up"
>
<QTooltip>
{{ t('Go to Salix') }}
</QTooltip>
</QBtn>
<QBtn id="pinnedModules" icon="apps" flat dense rounded>
<QTooltip bottom>
@ -89,3 +92,10 @@ const pinnedModulesRef = ref();
</QToolbar>
</QHeader>
</template>
<i18n>
en:
Go to Salix: Go to Salix
es:
Go to Salix: Ir a Salix
</i18n>

View File

@ -24,17 +24,17 @@ async function redirect() {
let section = route.path.substring(1);
if (!route.path.includes('/')) return (window.location.href = await getUrl(section));
section = section.substring(0, section.indexOf('/'));
if (route?.params?.id) {
window.location.href = await getUrl(`${section}/${route.params.id}/summary`);
} else {
window.location.href = await getUrl(section + 'dashboard');
}
if (route?.params?.id)
return (window.location.href = await getUrl(
`${section}/${route.params.id}/summary`
));
return (window.location.href = await getUrl(section + 'dashboard'));
}
</script>
<template>
<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
flat
stack