mirror of https://github.com/apache/cloudstack.git
revert wrong changes
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
ba69078c3f
commit
60e34314fc
|
|
@ -251,24 +251,23 @@ export default {
|
|||
zoneId = zoneIds.join(',')
|
||||
}
|
||||
params.zoneid = zoneId
|
||||
console.log(values, params)
|
||||
|
||||
// this.loading = true
|
||||
// api('update' + this.offeringType, params).then(json => {
|
||||
// this.$emit('refresh-data')
|
||||
// this.$notification.success({
|
||||
// message: this.$t('label.action.update.offering.access'),
|
||||
// description: this.$t('label.action.update.offering.access')
|
||||
// })
|
||||
// }).catch(error => {
|
||||
// this.$notification.error({
|
||||
// message: 'Request Failed',
|
||||
// description: (error.response && error.response.headers && error.response.headers['x-description']) || error.message
|
||||
// })
|
||||
// }).finally(() => {
|
||||
// this.loading = false
|
||||
// this.closeAction()
|
||||
// })
|
||||
this.loading = true
|
||||
api('update' + this.offeringType, params).then(json => {
|
||||
this.$emit('refresh-data')
|
||||
this.$notification.success({
|
||||
message: this.$t('label.action.update.offering.access'),
|
||||
description: this.$t('label.action.update.offering.access')
|
||||
})
|
||||
}).catch(error => {
|
||||
this.$notification.error({
|
||||
message: 'Request Failed',
|
||||
description: (error.response && error.response.headers && error.response.headers['x-description']) || error.message
|
||||
})
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
this.closeAction()
|
||||
})
|
||||
})
|
||||
},
|
||||
closeAction () {
|
||||
|
|
|
|||
Loading…
Reference in New Issue