Keep both apps and appstore views alive in vue to avoid frequent reloading

This commit is contained in:
Johannes Zellner
2025-09-29 20:17:32 +02:00
parent e05fef18a0
commit 5c6ceb2307
3 changed files with 15 additions and 5 deletions
+5 -3
View File
@@ -354,10 +354,12 @@ onMounted(async () => {
<Headerbar :config="config" :subscription="subscription"/>
<div style="display: flex; justify-content: center; overflow: auto; flex-grow: 1; padding: 0; margin: 0 10px; position: relative;">
<AppsView v-if="view === VIEWS.APPS" />
<AppConfigureView v-else-if="view === VIEWS.APP" />
<KeepAlive>
<AppsView v-if="view === VIEWS.APPS" />
<AppstoreView v-else-if="view === VIEWS.APPSTORE" />
</KeepAlive>
<AppConfigureView v-if="view === VIEWS.APP" />
<AppearanceView v-else-if="view === VIEWS.APPEARANCE" />
<AppstoreView v-else-if="view === VIEWS.APPSTORE" />
<BackupSitesView v-else-if="view === VIEWS.BACKUP_SITES" />
<BackupListView v-else-if="view === VIEWS.BACKUP_LIST" />
<BackupAppArchiveView v-else-if="view === VIEWS.BACKUP_APP_ARCHIVE" />