mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
ui: fix action notifications (#7499)
Some UI actions were missing title and description in pollJob method preventing notification for them to be published. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
897dad619b
commit
88ff77dae1
@ -593,6 +593,7 @@
|
||||
"label.delete.certificate": "Delete certificate",
|
||||
"label.delete.ciscoasa1000v": "Delete CiscoASA1000v",
|
||||
"label.delete.ciscovnmc.resource": "Delete CiscoVNMC resource",
|
||||
"label.delete.condition": "Delete condition",
|
||||
"label.delete.dedicated.vlan.range": "Deleted dedicated VLAN/VNI range.",
|
||||
"label.delete.domain": "Delete domain",
|
||||
"label.delete.events": "Delete events",
|
||||
|
||||
@ -541,7 +541,7 @@ export default {
|
||||
api('deleteCondition', { id: conditionId }).then(response => {
|
||||
const jobId = response.deleteconditionresponse.jobid
|
||||
this.$pollJob({
|
||||
title: this.$t('label.action.delete.condition'),
|
||||
title: this.$t('label.delete.condition'),
|
||||
description: conditionId,
|
||||
jobId: jobId,
|
||||
successMethod: () => {
|
||||
@ -588,6 +588,8 @@ export default {
|
||||
threshold: this.updateConditionDetails.threshold
|
||||
}).then(response => {
|
||||
this.$pollJob({
|
||||
title: this.$t('label.update.condition'),
|
||||
description: this.selectedCondition.id,
|
||||
jobId: response.updateconditionresponse.jobid,
|
||||
successMessage: this.$t('message.success.update.condition'),
|
||||
successMethod: () => {
|
||||
|
||||
@ -255,6 +255,8 @@ export default {
|
||||
if (jobId) {
|
||||
this.$pollJob({
|
||||
jobId,
|
||||
title: this.$t('label.scale.vm'),
|
||||
description: this.resource.name,
|
||||
successMethod: result => {
|
||||
this.$notification.success({
|
||||
message: this.$t('message.success.change.offering')
|
||||
|
||||
@ -193,6 +193,8 @@ export default {
|
||||
}
|
||||
api('migrateVolume', params).then(response => {
|
||||
this.$pollJob({
|
||||
title: this.$t('label.migrate.volume'),
|
||||
description: this.resource.id,
|
||||
jobId: response.migratevolumeresponse.jobid,
|
||||
successMessage: this.$t('message.success.migrate.volume'),
|
||||
errorMessage: this.$t('message.migrate.volume.failed'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user