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