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)" @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>

View File

@ -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