fixes - prev commit missing

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-03-23 13:49:58 +05:30 committed by Rohit Yadav
parent 3dc6b44c33
commit 153e958c02
3 changed files with 3 additions and 9 deletions

View File

@ -810,10 +810,7 @@ export default {
params.zoneid = zoneId params.zoneid = zoneId
} }
api('createServiceOffering', params).then(json => { api('createServiceOffering', params).then(json => {
this.$notification.success({ this.$message.success((this.isSystem ? 'Service offering created: ' : 'Compute offering created: ') + values.name)
message: this.isSystem ? 'Service offering created' : 'Compute offering created',
description: this.isSystem ? 'Service offering created' : 'Compute offering created'
})
}).catch(error => { }).catch(error => {
this.$notification.error({ this.$notification.error({
message: 'Request Failed', message: 'Request Failed',

View File

@ -493,7 +493,7 @@ export default {
params.zoneid = zoneId params.zoneid = zoneId
} }
api('createDiskOffering', params).then(json => { api('createDiskOffering', params).then(json => {
this.$message.success('Diskoffering created: ' + values.name) this.$message.success('Disk offering created: ' + values.name)
}).catch(error => { }).catch(error => {
this.$notification.error({ this.$notification.error({
message: 'Request Failed', message: 'Request Failed',

View File

@ -838,10 +838,7 @@ export default {
} }
params.traffictype = 'GUEST' // traffic type dropdown has been removed since it has only one option ('Guest'). Hardcode traffic type value here. params.traffictype = 'GUEST' // traffic type dropdown has been removed since it has only one option ('Guest'). Hardcode traffic type value here.
api('createNetworkOffering', params).then(json => { api('createNetworkOffering', params).then(json => {
this.$notification.success({ this.$message.success('Network offering created: ' + values.name)
message: 'Network offering created',
description: 'Network offering created'
})
}).catch(error => { }).catch(error => {
this.$notification.error({ this.$notification.error({
message: 'Request Failed', message: 'Request Failed',