createnetworkform: Displaying api errors (#885)

createnetworkform: Displaying 'technical' API error message caused by backend configuration errors.
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
davidjumani 2020-12-04 17:48:09 +05:30 committed by Rohit Yadav
parent 3edda6c05d
commit 8fc4839eb1
3 changed files with 6 additions and 0 deletions

View File

@ -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)) {

View File

@ -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)) {

View File

@ -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)) {