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

sureshanaparti 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 b9905c7  simplify code using object shorthand in multiple views (#5899)
b9905c7 is described below

commit b9905c7e377bc9c5f5129e7d43be40183a06c052
Author: Daman Arora <[email protected]>
AuthorDate: Thu Jan 27 01:57:18 2022 -0500

    simplify code using object shorthand in multiple views (#5899)
---
 ui/src/views/compute/AttachIso.vue             | 2 +-
 ui/src/views/compute/CreateSnapshotWizard.vue  | 4 ++--
 ui/src/views/compute/DeployVM.vue              | 4 ++--
 ui/src/views/iam/SSLCertificateTab.vue         | 2 +-
 ui/src/views/offering/ImportBackupOffering.vue | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ui/src/views/compute/AttachIso.vue 
b/ui/src/views/compute/AttachIso.vue
index 3410e49..62ae4b5 100644
--- a/ui/src/views/compute/AttachIso.vue
+++ b/ui/src/views/compute/AttachIso.vue
@@ -137,7 +137,7 @@ export default {
           if (jobId) {
             this.$pollJob({
               jobId,
-              title: title,
+              title,
               description: values.id,
               successMessage: `${this.$t('label.action.attach.iso')} 
${this.$t('label.success')}`,
               loadingMessage: `${title} ${this.$t('label.in.progress')}`,
diff --git a/ui/src/views/compute/CreateSnapshotWizard.vue 
b/ui/src/views/compute/CreateSnapshotWizard.vue
index ed4fbc9..2a1be5b 100644
--- a/ui/src/views/compute/CreateSnapshotWizard.vue
+++ b/ui/src/views/compute/CreateSnapshotWizard.vue
@@ -135,8 +135,8 @@ export default {
             if (jobId) {
               this.$pollJob({
                 jobId,
-                title: title,
-                description: description,
+                title,
+                description,
                 successMethod: result => {
                   const volumeId = result.jobresult.snapshot.volumeid
                   const snapshotId = result.jobresult.snapshot.id
diff --git a/ui/src/views/compute/DeployVM.vue 
b/ui/src/views/compute/DeployVM.vue
index cbabe79..f561952 100644
--- a/ui/src/views/compute/DeployVM.vue
+++ b/ui/src/views/compute/DeployVM.vue
@@ -1773,8 +1773,8 @@ export default {
           if (jobId) {
             this.$pollJob({
               jobId,
-              title: title,
-              description: description,
+              title,
+              description,
               successMethod: result => {
                 const vm = result.jobresult.virtualmachine
                 const name = vm.displayname || vm.name || vm.id
diff --git a/ui/src/views/iam/SSLCertificateTab.vue 
b/ui/src/views/iam/SSLCertificateTab.vue
index 8957573..29b7d3f 100644
--- a/ui/src/views/iam/SSLCertificateTab.vue
+++ b/ui/src/views/iam/SSLCertificateTab.vue
@@ -209,7 +209,7 @@ export default {
       const title = `${this.$t('label.deleteconfirm')} 
${this.$t('label.certificate')}`
 
       this.$confirm({
-        title: title,
+        title,
         okText: this.$t('label.ok'),
         okType: 'danger',
         cancelText: this.$t('label.cancel'),
diff --git a/ui/src/views/offering/ImportBackupOffering.vue 
b/ui/src/views/offering/ImportBackupOffering.vue
index 24f8390..e3f9b4f 100644
--- a/ui/src/views/offering/ImportBackupOffering.vue
+++ b/ui/src/views/offering/ImportBackupOffering.vue
@@ -177,7 +177,7 @@ export default {
           if (jobId) {
             this.$pollJob({
               jobId,
-              title: title,
+              title,
               description: values.name,
               successMethod: result => {
                 this.closeAction()

Reply via email to