Replace app configure views

This commit is contained in:
Johannes Zellner
2025-02-20 10:54:43 +01:00
parent a669144d16
commit f52a330b16
5 changed files with 183 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
import { onMounted, ref } from 'vue';
import { Notification } from 'pankow';
import AppsView from './views/AppsView.vue';
import AppConfigureView from './views/AppConfigureView.vue';
import AppstoreView from './views/AppstoreView.vue';
import BackupsView from './views/BackupsView.vue';
import BrandingView from './views/BrandingView.vue';
@@ -20,6 +21,7 @@ import VolumesView from './views/VolumesView.vue';
const VIEWS = {
APPS: 'apps',
APP: 'app',
APPSTORE: 'appstore',
BACKUPS: 'backups',
BRANDING: 'branding',
@@ -45,6 +47,8 @@ function onHashChange() {
view.value = VIEWS.APPS;
} else if (v.indexOf(VIEWS.APPSTORE) === 0) {
view.value = VIEWS.APPSTORE;
} else if (v.indexOf(VIEWS.APP) === 0) {
view.value = VIEWS.APP;
} else if (v === VIEWS.BACKUPS) {
view.value = VIEWS.BACKUPS;
} else if (v === VIEWS.BRANDING) {
@@ -96,6 +100,7 @@ onMounted(async () => {
<Notification />
<AppsView v-if="view === VIEWS.APPS" />
<AppConfigureView v-if="view === VIEWS.APP" />
<AppstoreView v-else-if="view === VIEWS.APPSTORE" />
<BackupsView v-else-if="view === VIEWS.BACKUPS" />
<BrandingView v-else-if="view === VIEWS.BRANDING" />