diff --git a/dashboard/src/components/app/Uninstall.vue b/dashboard/src/components/app/Uninstall.vue new file mode 100644 index 000000000..5c34b77e4 --- /dev/null +++ b/dashboard/src/components/app/Uninstall.vue @@ -0,0 +1,72 @@ + + + + + + {{ $t('app.uninstall.startStop.title') }} + {{ $t('app.uninstall.startStop.description') }} + + {{ $t(isAppStopped ? 'app.uninstall.startStop.startAction' : 'app.uninstall.startStop.stopAction') }} + + + + + + + {{ $t('app.archive.title') }} + + + + {{ $t('app.archive.action') }} + + + + + + {{ $t('app.uninstall.uninstall.title') }} + {{ $t('app.uninstall.uninstall.description') }} + {{ $t('app.uninstall.uninstall.uninstallAction') }} + + + diff --git a/dashboard/src/views/AppConfigureView.vue b/dashboard/src/views/AppConfigureView.vue index 26f220330..984fe4b78 100644 --- a/dashboard/src/views/AppConfigureView.vue +++ b/dashboard/src/views/AppConfigureView.vue @@ -9,6 +9,7 @@ const t = i18n.t; import { ref, onMounted, useTemplateRef } from 'vue'; import { Button, ButtonGroup, TabView } from 'pankow'; import Info from '../components/app/Info.vue'; +import Uninstall from '../components/app/Uninstall.vue'; import AppsModel from '../models/AppsModel.js'; import { APP_TYPES } from '../constants.js'; @@ -40,6 +41,10 @@ const link = ref(''); const infoMenu = ref([]); const hasLocalStorage = ref(false); +function onTabChanged(tab) { + window.location.hash = `/app/${id.value}/${tab}`; +} + async function refresh() { const [error, result] = await appsModel.get(id.value); if (error) return console.error(error); @@ -137,7 +142,7 @@ onMounted(async () => { - + Display @@ -154,7 +159,7 @@ onMounted(async () => { - +
{{ $t('app.uninstall.startStop.description') }}
{{ $t('app.uninstall.uninstall.description') }}