From fd4bc612d7f04656ef1f4fbf8a96c726bc5e83e2 Mon Sep 17 00:00:00 2001 From: davidjumani Date: Thu, 1 Apr 2021 12:29:57 +0530 Subject: [PATCH] ui: assignVM: Set isrecursive to false when fetching accounts (#4867) * Set isrecursive to false when fetching accounts * Adding exception handling --- ui/src/views/compute/AssignInstance.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/ui/src/views/compute/AssignInstance.vue b/ui/src/views/compute/AssignInstance.vue index 000dee5b2be..e77cfc4d0a1 100644 --- a/ui/src/views/compute/AssignInstance.vue +++ b/ui/src/views/compute/AssignInstance.vue @@ -134,6 +134,10 @@ export default { this.selectedDomain = this.domains[0].id this.fetchAccounts() this.fetchProjects() + }).catch(error => { + this.$notifyError(error) + }).finally(() => { + this.loading = false }) }, fetchAccounts () { @@ -142,9 +146,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 }) }, @@ -155,9 +162,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 }) }, @@ -172,6 +182,9 @@ export default { projectid: this.selectedProject }).then(response => { this.networks = response.listnetworksresponse.network + }).catch(error => { + this.$notifyError(error) + }).finally(() => { this.loading = false }) },