fix(settings): Always open the details tab for selected app

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/44092/head
Ferdinand Thiessen 3 months ago
parent 30d5b02811
commit cbdadba2e3
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400

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

Loading…
Cancel
Save