test data for displaySetup in ShowTransactionLinkInformations.vue

This commit is contained in:
ogerly 2022-03-10 10:34:48 +01:00
parent 85e39a47af
commit b97837d415

View File

@ -4,6 +4,7 @@
<div class="header py-7 py-lg-8 pt-lg-9">
<b-container>
<div class="header-body text-center mb-7">
<div class="mb-5">resultDB : {{ resultDB }}</div>
<p class="h1">
{{ displaySetup.user.firstName }} {{ displaySetup.user.lastName }}
{{ $t('wants to send you') }} {{ displaySetup.amount | GDD }}
@ -25,7 +26,16 @@ export default {
name: 'ShowTransactionLinkInformations',
data() {
return {
displaySetup: {},
resultDB: {},
displaySetup: {
amount: '123456',
linkTo: '',
user: {
publisherId: 1,
firstName: 'testName',
lastName: 'testOgerly',
},
},
}
},
methods: {
@ -41,6 +51,7 @@ export default {
const {
data: { queryTransactionLink },
} = result
this.resultDB = queryTransactionLink
this.displaySetup = queryTransactionLink
this.$store.commit('publisherId', queryTransactionLink.user.publisherId)
})
@ -50,7 +61,8 @@ export default {
},
},
created() {
this.setDisplaySetup()
this.setTransactionLinkInformation()
this.displaySetup.linkTo = this.$route.params.code
},
}
</script>