diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-08 18:51:28 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-11 16:02:40 +0100 |
commit | cbdadba2e3e3ef3669e319371c0b3420e5b02faa (patch) | |
tree | 8e2a8bb1421bff4515c5d4821f9dd9773602e6a5 | |
parent | 30d5b0281140653192ba01fcbd11b0e367af96a0 (diff) | |
download | nextcloud-server-cbdadba2e3e3ef3669e319371c0b3420e5b02faa.tar.gz nextcloud-server-cbdadba2e3e3ef3669e319371c0b3420e5b02faa.zip |
fix(settings): Always open the details tab for selected app
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r-- | apps/settings/src/views/AppStoreSidebar.vue | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/apps/settings/src/views/AppStoreSidebar.vue b/apps/settings/src/views/AppStoreSidebar.vue index dda9afd21f8..1e0d2562abc 100644 --- a/apps/settings/src/views/AppStoreSidebar.vue +++ b/apps/settings/src/views/AppStoreSidebar.vue @@ -25,6 +25,7 @@ <NcAppSidebar v-if="showSidebar" class="app-sidebar" :class="{ 'app-sidebar--with-screenshot': hasScreenshot }" + :active.sync="activeTab" :background="hasScreenshot ? app.screenshot : undefined" :compact="!hasScreenshot" :name="app.name" @@ -88,13 +89,18 @@ const { appIcon } = useAppIcon(app) */ const licenseText = computed(() => 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 |