From 659d7eee216755c7758ff45be9a2ac1123ba78f1 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 8 Mar 2024 18:51:28 +0100 Subject: [PATCH] fix(settings): Always open the details tab for selected app Signed-off-by: Ferdinand Thiessen --- apps/settings/src/views/AppStoreSidebar.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/settings/src/views/AppStoreSidebar.vue b/apps/settings/src/views/AppStoreSidebar.vue index dda9afd21f85f..1e0d2562abc97 100644 --- a/apps/settings/src/views/AppStoreSidebar.vue +++ b/apps/settings/src/views/AppStoreSidebar.vue @@ -25,6 +25,7 @@ app.value ? t('settings', 'Version {version}, {license}-licensed', { version: app.value.version, license: app.value.licence.toString().toUpperCase() }) : '') +const activeTab = ref('details') +watch([app], () => { activeTab.value = 'details' }) + /** * Hide the details sidebar by pushing a new route */ -const hideAppDetails = () => router.push({ - name: 'apps-category', - params: { category: route.params.category }, -}) +const hideAppDetails = () => { + router.push({ + name: 'apps-category', + params: { category: route.params.category }, + }) +} /** * Whether the app screenshot is loaded