diff --git a/ui/src/views/compute/AssignInstance.vue b/ui/src/views/compute/AssignInstance.vue index 3d83f3ff756d..936467f4c857 100644 --- a/ui/src/views/compute/AssignInstance.vue +++ b/ui/src/views/compute/AssignInstance.vue @@ -129,6 +129,10 @@ export default { this.selectedDomain = this.domains[0].id this.fetchAccounts() this.fetchProjects() + }).catch(error => { + this.$notifyError(error) + }).finally(() => { + this.loading = false }) }, fetchAccounts () { @@ -137,9 +141,12 @@ export default { response: 'json', domainId: this.selectedDomain, state: 'Enabled', - listAll: true + isrecursive: false }).then(response => { this.accounts = response.listaccountsresponse.account + }).catch(error => { + this.$notifyError(error) + }).finally(() => { this.loading = false }) }, @@ -150,9 +157,12 @@ export default { domainId: this.selectedDomain, state: 'Active', details: 'min', - listAll: true + isrecursive: false }).then(response => { this.projects = response.listprojectsresponse.project + }).catch(error => { + this.$notifyError(error) + }).finally(() => { this.loading = false }) }, @@ -167,6 +177,9 @@ export default { projectid: this.selectedProject }).then(response => { this.networks = response.listnetworksresponse.network + }).catch(error => { + this.$notifyError(error) + }).finally(() => { this.loading = false }) },