From 4e006f2d84fe858e5a20942c113459b74a305fb6 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 24 Mar 2022 09:11:26 +0100 Subject: [PATCH] add components FigureQrCode.vue for show qr code image with gradido coin --- .../GddSend/TransactionResultLink.vue | 17 +++++- .../TransactionLinks/TransactionLink.vue | 61 +++++-------------- 2 files changed, 32 insertions(+), 46 deletions(-) diff --git a/frontend/src/components/GddSend/TransactionResultLink.vue b/frontend/src/components/GddSend/TransactionResultLink.vue index 66b5529d6..00c41042f 100644 --- a/frontend/src/components/GddSend/TransactionResultLink.vue +++ b/frontend/src/components/GddSend/TransactionResultLink.vue @@ -4,9 +4,17 @@
-
{{ $t('gdd_per_link.created') }}
+
{{ $t('gdd_per_link.created') }}
+
+ + + + + +
+

{{ $t('form.close') }}

@@ -17,11 +25,13 @@ diff --git a/frontend/src/components/TransactionLinks/TransactionLink.vue b/frontend/src/components/TransactionLinks/TransactionLink.vue index 008d980a7..1bd454821 100644 --- a/frontend/src/components/TransactionLinks/TransactionLink.vue +++ b/frontend/src/components/TransactionLinks/TransactionLink.vue @@ -22,6 +22,15 @@
+ + + +
-
- - -
- +
-
- - GDD -
+

{{ link }}

@@ -60,7 +57,7 @@ import AmountAndNameRow from '../TransactionRows/AmountAndNameRow' import MemoRow from '../TransactionRows/MemoRow' import DateRow from '../TransactionRows/DateRow' import DecayRow from '../TransactionRows/DecayRow' -import VueQrcode from 'vue-qrcode' +import FigureQrCode from '@/components/QrCode/FigureQrCode.vue' export default { name: 'TransactionLink', @@ -70,7 +67,7 @@ export default { MemoRow, DateRow, DecayRow, - VueQrcode, + FigureQrCode, }, props: { amount: { type: String, required: true }, @@ -80,11 +77,6 @@ export default { memo: { type: String, required: true }, validUntil: { type: String, required: true }, }, - data() { - return { - link: `${window.location.origin}/redeem/${this.code}`, - } - }, methods: { copy() { navigator.clipboard @@ -120,30 +112,9 @@ export default { decay() { return `${this.amount - this.holdAvailableAmount}` }, + link() { + return `${window.location.origin}/redeem/${this.code}` + }, }, } -