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:
Abhishek Kumar 2020-02-10 11:45:13 +05:30 committed by Rohit Yadav
parent ba69078c3f
commit 60e34314fc
1 changed files with 16 additions and 17 deletions

View File

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