Bring back the SFTP connect info dialog
This commit is contained in:
@@ -7,6 +7,7 @@ const t = i18n.t;
|
||||
import { ref, onMounted, onBeforeUnmount, computed, useTemplateRef } from 'vue';
|
||||
import { Button, ButtonGroup } from 'pankow';
|
||||
import PostInstallDialog from '../components/PostInstallDialog.vue';
|
||||
import SftpInfoDialog from '../components/SftpInfoDialog.vue';
|
||||
import Access from '../components/app/Access.vue';
|
||||
import Backups from '../components/app/Backups.vue';
|
||||
import Cron from '../components/app/Cron.vue';
|
||||
@@ -43,6 +44,7 @@ const hasOptionalServices = ref(false);
|
||||
const hasEmail = ref(false);
|
||||
const busyStopTask = ref(false);
|
||||
const postInstallDialog = useTemplateRef('postInstallDialog');
|
||||
const sftpInfoDialog = useTemplateRef('sftpInfoDialog');
|
||||
|
||||
const isAppStopped = computed(() => {
|
||||
return appsModel.isStopped(app.value);
|
||||
@@ -108,7 +110,7 @@ async function refresh() {
|
||||
if (result.manifest?.addons?.localstorage?.ftp) {
|
||||
infoMenu.value.push({
|
||||
label: t('app.sftpInfoAction'),
|
||||
// TODO action
|
||||
action: () => sftpInfoDialog.value.open(app.value),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -168,6 +170,7 @@ onBeforeUnmount(() => {
|
||||
<template>
|
||||
<div class="configure-outer">
|
||||
<PostInstallDialog ref="postInstallDialog"/>
|
||||
<SftpInfoDialog ref="sftpInfoDialog"/>
|
||||
|
||||
<div class="configure-inner" v-if="!busy">
|
||||
<div class="titlebar">
|
||||
|
||||
Reference in New Issue
Block a user