This is an automated email from the ASF dual-hosted git repository.

davidjumani pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new 908bf98  ui: Fix title error
908bf98 is described below

commit 908bf980a57ac3af3319b6833eaa83096f2480e6
Author: davidjumani <[email protected]>
AuthorDate: Tue Jul 20 10:32:39 2021 +0530

    ui: Fix title error
---
 ui/src/utils/plugins.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ui/src/utils/plugins.js b/ui/src/utils/plugins.js
index c44cec9..fb316ae 100644
--- a/ui/src/utils/plugins.js
+++ b/ui/src/utils/plugins.js
@@ -99,9 +99,9 @@ export const pollJobPlugin = {
               duration: 1
             })
           }
-          var title = errorMessage
+          var errMessage = errorMessage
           if (action && action.label) {
-            title = i18n.t(action.label)
+            errMessage = i18n.t(action.label)
           }
           var desc = result.jobresult.errortext
           if (name) {
@@ -109,7 +109,7 @@ export const pollJobPlugin = {
           }
           if (!bulkAction) {
             notification.error({
-              message: title,
+              message: errMessage,
               description: desc,
               key: jobId,
               duration: 0

Reply via email to