Skip to content

Commit fc49f5d

Browse files
authored
simplify code using object shorthand in project view (#5820)
1 parent 44f6730 commit fc49f5d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

ui/src/views/project/AccountsTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export default {
305305
const title = `${this.$t('label.deleteconfirm')} ${this.$t('label.account')}`
306306
307307
this.$confirm({
308-
title: title,
308+
title,
309309
okText: this.$t('label.ok'),
310310
okType: 'danger',
311311
cancelText: this.$t('label.cancel'),

ui/src/views/project/InvitationTokenTemplate.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ export default {
100100
hasJobId = true
101101
const jobId = json[obj][res]
102102
this.$pollJob({
103-
title: title,
104-
jobid: jobId,
105-
description: description,
103+
title,
104+
jobId,
105+
description,
106106
showLoading: false
107107
})
108108
}

ui/src/views/project/InvitationsTemplate.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export default {
213213
const title = this.$t('label.confirmacceptinvitation')
214214
215215
this.$confirm({
216-
title: title,
216+
title,
217217
okText: this.$t('label.ok'),
218218
okType: 'danger',
219219
cancelText: this.$t('label.cancel'),
@@ -262,7 +262,7 @@ export default {
262262
const title = this.$t('label.confirmdeclineinvitation')
263263
264264
this.$confirm({
265-
title: title,
265+
title,
266266
okText: this.$t('label.ok'),
267267
okType: 'danger',
268268
cancelText: this.$t('label.cancel'),
@@ -296,9 +296,9 @@ export default {
296296
hasJobId = true
297297
const jobId = json[obj][res]
298298
this.$pollJob({
299-
title: title,
300-
jobid: jobId,
301-
description: description,
299+
title,
300+
jobId,
301+
description,
302302
showLoading: false
303303
})
304304
}

0 commit comments

Comments
 (0)