diff --git a/dashboard/src/views/AppConfigureView.vue b/dashboard/src/views/AppConfigureView.vue index 4620af459..ba8065ccf 100644 --- a/dashboard/src/views/AppConfigureView.vue +++ b/dashboard/src/views/AppConfigureView.vue @@ -7,7 +7,7 @@ const i18n = useI18n(); const t = i18n.t; import { ref, onMounted, onBeforeUnmount, useTemplateRef, computed } from 'vue'; -import { Button, ButtonGroup, TabView } from 'pankow'; +import { Button, ButtonGroup } from 'pankow'; import Info from '../components/app/Info.vue'; import Security from '../components/app/Security.vue'; import Cron from '../components/app/Cron.vue'; @@ -19,28 +19,9 @@ import { APP_TYPES } from '../constants.js'; const appsModel = AppsModel.create(); -const tabView = useTemplateRef('tabView'); -const tabs = ref({ - info: t('app.infoTabTitle'), - display: t('app.displayTabTitle'), - location: t('app.locationTabTitle'), - proxy: 'Proxy', - access: t('app.accessControlTabTitle'), - resources: t('app.resourcesTabTitle'), - services: t('app.servicesTabTitle'), - storage: t('app.storageTabTitle'), - graphs: t('app.graphsTabTitle'), - security: t('app.securityTabTitle'), - email: t('app.emailTabTitle'), - cron: t('app.cronTabTitle'), - updates: t('app.updatesTabTitle'), - backups: t('app.backupsTabTitle'), - repair: t('app.repairTabTitle'), - eventlog: t('app.eventlogTabTitle'), - uninstall: t('app.uninstallTabTitle'), -}); const id = ref(''); const app = ref({}); +const view = ref(''); const link = ref(''); const infoMenu = ref([]); const hasLocalStorage = ref(false); @@ -49,8 +30,9 @@ const isAppStopped = computed(() => { return appsModel.isStopped(app.value); }); -function onTabChanged(tab) { - window.location.hash = `/app/${id.value}/${tab}`; +function onSetView(newView) { + view.value = newView; + window.location.hash = `/app/${id.value}/${newView}`; } async function onToggleRunState() { @@ -134,7 +116,7 @@ onMounted(async () => { await refresh(); - tabView.value.open(parts[1] || 'info'); + onSetView(parts[1] || 'info'); }); onBeforeUnmount(() => { @@ -144,62 +126,117 @@ onBeforeUnmount(() => {