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:
Abhishek Kumar 2023-05-08 17:46:17 +05:30 committed by GitHub
parent 897dad619b
commit 88ff77dae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 1 deletions

View File

@ -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",

View File

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

View File

@ -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')

View File

@ -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'),