mirror of https://github.com/apache/cloudstack.git
simplify code using object shorthand in multiple views (#5899)
This commit is contained in:
parent
d26ce157db
commit
b9905c7e37
|
|
@ -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')}`,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ export default {
|
|||
if (jobId) {
|
||||
this.$pollJob({
|
||||
jobId,
|
||||
title: title,
|
||||
title,
|
||||
description: values.name,
|
||||
successMethod: result => {
|
||||
this.closeAction()
|
||||
|
|
|
|||
Loading…
Reference in New Issue