Skip to content

Commit 54d0acd

Browse files
committed
notification title
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent e1de17a commit 54d0acd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/src/views/extension/RunCustomAction.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export default {
247247
api('runCustomAction', args, httpMethod, data).then(response => {
248248
this.$pollJob({
249249
jobId: response.runcustomactionresponse.jobid,
250-
title: this.$t('label.run.custom.action'),
250+
title: this.currentAction.name || this.$t('label.run.custom.action'),
251251
description: this.currentAction.description || this.currentAction.name,
252252
successMethod: (result) => {
253253
this.$emit('refresh-data')
@@ -256,19 +256,19 @@ export default {
256256
const message = actionResponse?.result?.message || (success ? 'success' : 'fail')
257257
if (actionResponse.success) {
258258
this.$notification.success({
259-
message: this.$t('label.run.custom.action'),
259+
message: this.currentAction.name || this.$t('label.run.custom.action'),
260260
description: message,
261261
duration: 0
262262
})
263263
} else {
264264
this.$notification.error({
265-
message: this.$t('error.run.custom.action'),
265+
message: this.currentAction.name || this.$t('label.run.custom.action'),
266266
description: message,
267267
duration: 0
268268
})
269269
}
270270
},
271-
errorMessage: this.$t('error.run.custom.action'),
271+
errorMessage: this.currentAction.name || this.$t('label.run.custom.action'),
272272
loadingMessage: this.$t('message.running.custom.action'),
273273
catchMessage: this.$t('error.fetching.async.job.result')
274274
})

0 commit comments

Comments
 (0)