This is an automated email from the ASF dual-hosted git repository. paul_a pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git
The following commit(s) were added to refs/heads/master by this push: new 982197f createnetworkform: Displaying api errors (#885) 982197f is described below commit 982197fdc8677a56a53097492c2575507eeae686 Author: davidjumani <dj.davidjumani1...@gmail.com> AuthorDate: Fri Dec 4 17:48:09 2020 +0530 createnetworkform: Displaying api errors (#885) createnetworkform: Displaying 'technical' API error message caused by backend configuration errors. --- src/views/network/CreateIsolatedNetworkForm.vue | 2 ++ src/views/network/CreateL2NetworkForm.vue | 2 ++ src/views/network/CreateSharedNetworkForm.vue | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/views/network/CreateIsolatedNetworkForm.vue b/src/views/network/CreateIsolatedNetworkForm.vue index b4bcdd8..b40c241 100644 --- a/src/views/network/CreateIsolatedNetworkForm.vue +++ b/src/views/network/CreateIsolatedNetworkForm.vue @@ -415,6 +415,8 @@ export default { this.selectedNetworkOffering = {} api('listNetworkOfferings', params).then(json => { this.networkOfferings = json.listnetworkofferingsresponse.networkoffering + }).catch(error => { + this.$notifyError(error) }).finally(() => { this.networkOfferingLoading = false if (this.arrayHasItems(this.networkOfferings)) { diff --git a/src/views/network/CreateL2NetworkForm.vue b/src/views/network/CreateL2NetworkForm.vue index fc611b8..b21bce0 100644 --- a/src/views/network/CreateL2NetworkForm.vue +++ b/src/views/network/CreateL2NetworkForm.vue @@ -387,6 +387,8 @@ export default { } api('listNetworkOfferings', params).then(json => { this.networkOfferings = json.listnetworkofferingsresponse.networkoffering + }).catch(error => { + this.$notifyError(error) }).finally(() => { this.networkOfferingLoading = false if (this.arrayHasItems(this.networkOfferings)) { diff --git a/src/views/network/CreateSharedNetworkForm.vue b/src/views/network/CreateSharedNetworkForm.vue index 03cf301..e91a563 100644 --- a/src/views/network/CreateSharedNetworkForm.vue +++ b/src/views/network/CreateSharedNetworkForm.vue @@ -654,6 +654,8 @@ export default { this.networkOfferings = [] api('listNetworkOfferings', params).then(json => { this.networkOfferings = json.listnetworkofferingsresponse.networkoffering + }).catch(error => { + this.$notifyError(error) }).finally(() => { this.networkOfferingLoading = false if (this.arrayHasItems(this.networkOfferings)) {