mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
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:
parent
3edda6c05d
commit
8fc4839eb1
@ -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)) {
|
||||
|
||||
@ -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)) {
|
||||
|
||||
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user