Migrate first parts of backups view to vue
This commit is contained in:
@@ -169,14 +169,17 @@ function toggleView() {
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
profile.value = await profileModel.get();
|
||||
let [error, result] = await profileModel.get();
|
||||
if (error) return console.error(error);
|
||||
|
||||
profile.value = result;
|
||||
|
||||
await refreshApps();
|
||||
|
||||
const [error, domains] = await domainsModel.list();
|
||||
[error, result] = await domainsModel.list();
|
||||
if (error) return console.error(error);
|
||||
|
||||
domainFilterOptions.value = domainFilterOptions.value.concat(domains.map(d => { d.id = d.domain; return d; }));
|
||||
domainFilterOptions.value = domainFilterOptions.value.concat(result.map(d => { d.id = d.domain; return d; }));
|
||||
domainFilter.value = domainFilterOptions.value[0].id;
|
||||
|
||||
stateFilter.value = stateFilterOptions[0].id;
|
||||
|
||||
Reference in New Issue
Block a user