simplify code using object shorthand in multiple views (#5899)

This commit is contained in:
Daman Arora 2022-01-27 01:57:18 -05:00 committed by GitHub
parent d26ce157db
commit b9905c7e37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -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')}`,

View File

@ -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

View File

@ -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

View File

@ -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'),

View File

@ -177,7 +177,7 @@ export default {
if (jobId) {
this.$pollJob({
jobId,
title: title,
title,
description: values.name,
successMethod: result => {
this.closeAction()