From fc49f5d0d8fb8f0987378aabadfaf93d3558c227 Mon Sep 17 00:00:00 2001 From: Daman Arora <61474540+Damans227@users.noreply.github.com> Date: Mon, 3 Jan 2022 02:44:07 -0500 Subject: [PATCH] simplify code using object shorthand in project view (#5820) --- ui/src/views/project/AccountsTab.vue | 2 +- ui/src/views/project/InvitationTokenTemplate.vue | 6 +++--- ui/src/views/project/InvitationsTemplate.vue | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/src/views/project/AccountsTab.vue b/ui/src/views/project/AccountsTab.vue index 390dccedc2d..08a7502c3f3 100644 --- a/ui/src/views/project/AccountsTab.vue +++ b/ui/src/views/project/AccountsTab.vue @@ -305,7 +305,7 @@ export default { const title = `${this.$t('label.deleteconfirm')} ${this.$t('label.account')}` this.$confirm({ - title: title, + title, okText: this.$t('label.ok'), okType: 'danger', cancelText: this.$t('label.cancel'), diff --git a/ui/src/views/project/InvitationTokenTemplate.vue b/ui/src/views/project/InvitationTokenTemplate.vue index 10121d318b9..21f0c4327cf 100644 --- a/ui/src/views/project/InvitationTokenTemplate.vue +++ b/ui/src/views/project/InvitationTokenTemplate.vue @@ -100,9 +100,9 @@ export default { hasJobId = true const jobId = json[obj][res] this.$pollJob({ - title: title, - jobid: jobId, - description: description, + title, + jobId, + description, showLoading: false }) } diff --git a/ui/src/views/project/InvitationsTemplate.vue b/ui/src/views/project/InvitationsTemplate.vue index 04565164e9a..2e42c081477 100644 --- a/ui/src/views/project/InvitationsTemplate.vue +++ b/ui/src/views/project/InvitationsTemplate.vue @@ -213,7 +213,7 @@ export default { const title = this.$t('label.confirmacceptinvitation') this.$confirm({ - title: title, + title, okText: this.$t('label.ok'), okType: 'danger', cancelText: this.$t('label.cancel'), @@ -262,7 +262,7 @@ export default { const title = this.$t('label.confirmdeclineinvitation') this.$confirm({ - title: title, + title, okText: this.$t('label.ok'), okType: 'danger', cancelText: this.$t('label.cancel'), @@ -296,9 +296,9 @@ export default { hasJobId = true const jobId = json[obj][res] this.$pollJob({ - title: title, - jobid: jobId, - description: description, + title, + jobId, + description, showLoading: false }) }