mirror of https://github.com/apache/cloudstack.git
simplify code using object shorthand in multiple files (#5766)
This commit is contained in:
parent
e3b0c0862f
commit
7cb4604e98
|
|
@ -62,8 +62,8 @@ export const pollJobPlugin = {
|
|||
|
||||
store.dispatch('AddHeaderNotice', {
|
||||
key: jobId,
|
||||
title: title,
|
||||
description: description,
|
||||
title,
|
||||
description,
|
||||
status: 'progress'
|
||||
})
|
||||
|
||||
|
|
@ -96,14 +96,14 @@ export const pollJobPlugin = {
|
|||
content = content + ' - ' + name
|
||||
}
|
||||
message.success({
|
||||
content: content,
|
||||
content,
|
||||
key: jobId,
|
||||
duration: 2
|
||||
})
|
||||
store.dispatch('AddHeaderNotice', {
|
||||
key: jobId,
|
||||
title: title,
|
||||
description: description,
|
||||
title,
|
||||
description,
|
||||
status: 'done',
|
||||
duration: 2
|
||||
})
|
||||
|
|
@ -141,7 +141,7 @@ export const pollJobPlugin = {
|
|||
}
|
||||
store.dispatch('AddHeaderNotice', {
|
||||
key: jobId,
|
||||
title: title,
|
||||
title,
|
||||
description: desc,
|
||||
status: 'failed',
|
||||
duration: 2
|
||||
|
|
|
|||
|
|
@ -164,8 +164,8 @@ export default {
|
|||
api('updateTrafficType', params).then(response => {
|
||||
this.$pollJob({
|
||||
jobId: response.updatetraffictyperesponse.jobid,
|
||||
title: title,
|
||||
description: description,
|
||||
title,
|
||||
description,
|
||||
successMessage: `${this.$t('label.update.traffic.label')} ${this.traffictype} ${this.$t('label.success')}`,
|
||||
loadingMessage: `${title} ${this.$t('label.in.progress')}`,
|
||||
catchMessage: this.$t('error.fetching.async.job.result')
|
||||
|
|
|
|||
|
|
@ -193,8 +193,8 @@ export default {
|
|||
addStep (title, step) {
|
||||
this.steps.push({
|
||||
index: this.currentStep,
|
||||
title: title,
|
||||
step: step,
|
||||
title,
|
||||
step,
|
||||
status: STATUS_PROCESS
|
||||
})
|
||||
this.setStepStatus(STATUS_PROCESS)
|
||||
|
|
|
|||
|
|
@ -193,8 +193,8 @@ export default {
|
|||
if (jobId) {
|
||||
this.$pollJob({
|
||||
jobId,
|
||||
title: title,
|
||||
description: description,
|
||||
title,
|
||||
description,
|
||||
loadingMessage: `${title} ${this.$t('label.in.progress')}`,
|
||||
catchMessage: this.$t('error.fetching.async.job.result')
|
||||
})
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ export default {
|
|||
if (jobId) {
|
||||
this.$pollJob({
|
||||
jobId,
|
||||
title: title,
|
||||
title,
|
||||
description: values.volumeid,
|
||||
successMethod: result => {
|
||||
this.closeAction()
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ export default {
|
|||
if (jobId) {
|
||||
this.$pollJob({
|
||||
jobId,
|
||||
title: title,
|
||||
title,
|
||||
description: values.name || this.resource.id,
|
||||
successMethod: result => {},
|
||||
loadingMessage: `${title} ${this.$t('label.in.progress.for')} ${description}`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue