Merge BackupList component into the main list view
This commit is contained in:
@@ -20,6 +20,7 @@ const inputDialog = useTemplateRef('inputDialog');
|
||||
|
||||
const profile = ref({});
|
||||
const targets = ref([]);
|
||||
const busy = ref(false);
|
||||
|
||||
const columns = {
|
||||
primary: {
|
||||
@@ -106,6 +107,8 @@ async function onRemount(target) {
|
||||
}
|
||||
|
||||
async function refresh() {
|
||||
busy.value = true;
|
||||
|
||||
const [error, result] = await backupTargetsModel.list();
|
||||
if (error) return console.error(error);
|
||||
|
||||
@@ -125,6 +128,7 @@ async function refresh() {
|
||||
}
|
||||
|
||||
targets.value = result;
|
||||
busy.value = false;
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
|
||||
Reference in New Issue
Block a user