this.link to const link

This commit is contained in:
ogerly 2022-11-01 14:43:53 +01:00
parent 23e480ef07
commit 00b08aad16

View File

@ -127,7 +127,7 @@ export default {
return {}
},
},
editContributionLink: { type: Boolean, required: false },
editContributionLink: { type: Boolean, required: true },
},
data() {
return {
@ -185,11 +185,11 @@ export default {
variables: variables,
})
.then((result) => {
this.link = this.editContributionLink
const link = this.editContributionLink
? result.data.updateContributionLink.link
: result.data.createContributionLink.link
this.toastSuccess(
this.editContributionLink ? this.$t('contributionLink.changeSaved') : this.link,
this.editContributionLink ? this.$t('contributionLink.changeSaved') : link,
)
this.onReset()
this.$root.$emit('bv::toggle::collapse', 'newContribution')