From 566f7df2d0bd63faa421b245b3dc6b0f8073c429 Mon Sep 17 00:00:00 2001 From: carlossa Date: Wed, 9 Aug 2023 10:02:48 +0200 Subject: [PATCH] refs #5989 tooltip, refact function, --- src/components/NavBar.vue | 10 ++++++++++ src/components/PinnedModules.vue | 12 ++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 6a8f916ea..ae4c4ceb5 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -64,6 +64,9 @@ const pinnedModulesRef = ref(); @click="pinnedModulesRef.redirect($route.params.id)" icon="more_up" > + + {{ t('Go to Salix') }} + @@ -89,3 +92,10 @@ const pinnedModulesRef = ref(); + + +en: + Go to Salix: Go to Salix +es: + Go to Salix: Ir a Salix + diff --git a/src/components/PinnedModules.vue b/src/components/PinnedModules.vue index c9aecff60..52fe29d2c 100644 --- a/src/components/PinnedModules.vue +++ b/src/components/PinnedModules.vue @@ -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')); }