From 12b13453150c3b2faca9fc0273596b4e72662021 Mon Sep 17 00:00:00 2001 From: carlosjr Date: Thu, 9 Jun 2022 09:45:53 +0200 Subject: [PATCH] dashboar can no longer be added to favorites --- src/components/FavoriteModules.vue | 8 ++++---- src/components/LeftMenu.vue | 12 ++++++++++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/components/FavoriteModules.vue b/src/components/FavoriteModules.vue index 0e04429c9..20b8e8d6f 100644 --- a/src/components/FavoriteModules.vue +++ b/src/components/FavoriteModules.vue @@ -4,10 +4,10 @@ import { useI18n } from 'vue-i18n'; import { useNavigation } from 'src/composables/useNavigation'; const { t } = useI18n(); -const modules = useNavigation(); +const navigation = useNavigation(); onMounted(() => { - modules.fetchFavorites(); + navigation.fetchFavorites(); }); @@ -18,9 +18,9 @@ onMounted(() => { max-width="350px" max-height="400px" style="justify-content: center" - v-if="modules.favorites.value.length" + v-if="navigation.favorites.value.length" > -
+
{{ t(`${module.name}.pageTitles.${module.title}`) }} -
+
@@ -130,7 +134,11 @@ async function onToggleFavoriteModule(moduleName, event) { {{ t(`${module.name}.pageTitles.${module.title}`) }} -
+