diff --git a/frontend/src/components/GddSend/TransactionResultLink.vue b/frontend/src/components/GddSend/TransactionResultLink.vue index 449b3c997..f63b18164 100644 --- a/frontend/src/components/GddSend/TransactionResultLink.vue +++ b/frontend/src/components/GddSend/TransactionResultLink.vue @@ -3,10 +3,10 @@
{{ $t('gdd_per_link.created') }}
- +
- + {{ $t('form.close') }} @@ -42,10 +42,5 @@ export default { this.showQrcode = !this.showQrcode }, }, - computed: { - link() { - return `${window.location.origin}/redeem/${this.code}` - }, - }, } diff --git a/frontend/src/components/QrCode/FigureQrCode.spec.js b/frontend/src/components/QrCode/FigureQrCode.spec.js index d19d806d3..715a5d5d5 100644 --- a/frontend/src/components/QrCode/FigureQrCode.spec.js +++ b/frontend/src/components/QrCode/FigureQrCode.spec.js @@ -4,7 +4,7 @@ import FigureQrCode from './FigureQrCode' const localVue = global.localVue const propsData = { - text: '', + link: '', } describe('FigureQrCode', () => { diff --git a/frontend/src/components/QrCode/FigureQrCode.vue b/frontend/src/components/QrCode/FigureQrCode.vue index df450a52e..00f1b54b9 100644 --- a/frontend/src/components/QrCode/FigureQrCode.vue +++ b/frontend/src/components/QrCode/FigureQrCode.vue @@ -14,14 +14,14 @@ export default { QRCanvas, }, props: { - text: { type: String, required: true }, + link: { type: String, required: true }, }, data() { return { options: { cellSize: 8, correctLevel: 'H', - data: this.text, + data: this.link, }, } }, diff --git a/frontend/src/components/TransactionLinks/TransactionLink.vue b/frontend/src/components/TransactionLinks/TransactionLink.vue index 63e610b26..ea230419a 100644 --- a/frontend/src/components/TransactionLinks/TransactionLink.vue +++ b/frontend/src/components/TransactionLinks/TransactionLink.vue @@ -47,7 +47,7 @@
- +

{{ link }}