simplify code using object shorthand in multiple files (#5766)

This commit is contained in:
Daman Arora 2021-12-30 04:59:25 -05:00 committed by GitHub
parent e3b0c0862f
commit 7cb4604e98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 14 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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