Remove backup list from backup targets view
This commit is contained in:
@@ -20,8 +20,8 @@ function create() {
|
||||
if (error || result.status !== 200) return [error || result];
|
||||
return [null, result.body.backupTargets];
|
||||
},
|
||||
async add(label, format, provider, config, schedule, retention, limits = null, encryptionPassword = null, encryptedFilenames = null) {
|
||||
const data = { label, format, provider, config, schedule, retention };
|
||||
async add(name, format, provider, config, schedule, retention, limits = null, encryptionPassword = null, encryptedFilenames = null) {
|
||||
const data = { name, format, provider, config, schedule, retention };
|
||||
|
||||
if (limits !== null) data.limits = limits;
|
||||
if (encryptionPassword !== null) data.encryptionPassword = encryptionPassword;
|
||||
|
||||
@@ -10,7 +10,6 @@ import Section from '../components/Section.vue';
|
||||
import StateLED from '../components/StateLED.vue';
|
||||
import BackupScheduleDialog from '../components/BackupScheduleDialog.vue';
|
||||
import BackupTargetDialog from '../components/BackupTargetDialog.vue';
|
||||
import BackupList from '../components/BackupList.vue';
|
||||
import BackupTargetsModel from '../models/BackupTargetsModel.js';
|
||||
import ProfileModel from '../models/ProfileModel.js';
|
||||
|
||||
@@ -20,7 +19,6 @@ const backupTargetsModel = BackupTargetsModel.create();
|
||||
const inputDialog = useTemplateRef('inputDialog');
|
||||
|
||||
const profile = ref({});
|
||||
const config = ref({});
|
||||
const targets = ref([]);
|
||||
|
||||
const columns = {
|
||||
@@ -190,7 +188,5 @@ onMounted(async () => {
|
||||
</template>
|
||||
</TableView>
|
||||
</Section>
|
||||
|
||||
<BackupList :config="config"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user