Skip to content

Commit 9233a54

Browse files
committed
Add wallet-closing warning to SwapAnimation
1 parent 054c58d commit 9233a54

File tree

10 files changed

+101
-59
lines changed

10 files changed

+101
-59
lines changed

src/components/swap/SwapAnimation.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@
110110
<div v-if="state === SwapState.AWAIT_SECRET" class="nq-h2">4/5 {{ $t('Awaiting swap secret') }}</div>
111111
<div v-if="state === SwapState.SETTLE_INCOMING" class="nq-h2">5/5 {{ $t('Finalizing swap') }}</div>
112112
<div v-if="state === SwapState.COMPLETE" class="nq-h2">5/5 {{ $t('Finalizing swap') }}</div>
113+
114+
<div class="dont-close-wallet-notice nq-orange">
115+
{{ $t('Don\'t close your wallet until the swap is complete!') }}
116+
</div>
113117
</div>
114118

115119
<div v-if="error" class="error nq-orange-bg">
@@ -688,12 +692,17 @@ export default defineComponent({
688692
}
689693
690694
.nq-card-footer {
691-
height: 10rem;
692695
margin-top: 3rem;
696+
text-align: center;
693697
694698
.nq-h2 {
695699
font-weight: normal;
696-
text-align: center;
700+
margin-bottom: 2rem;
701+
}
702+
703+
.dont-close-wallet-notice {
704+
margin: 0 auto 2rem;
705+
font-weight: 600;
697706
}
698707
}
699708

src/components/swap/SwapNotification.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
<span v-if="swapIsErrored" class="closing-notice">
2424
{{ $t('Click for more information') }}
2525
</span>
26-
<span v-else-if="swapIsOngoing" class="closing-notice">
27-
{{ $t('Don\'t close your Wallet') }}
26+
<span v-else-if="swapIsOngoing" class="closing-notice nq-orange">
27+
{{ $t('Don\'t close your wallet!') }}
2828
</span>
2929
<span v-else class="closing-notice">
30-
{{ $t('It\'s safe to close your Wallet now') }}
30+
{{ $t('It\'s safe to close your wallet now') }}
3131
</span>
3232
</div>
3333
<MaximizeIcon v-if="swapIsOngoing"/>

src/i18n/de.po

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,13 @@ msgstr "Entwickler"
472472
msgid "Disclaimer"
473473
msgstr "Haftungsausschluss"
474474

475+
#: src/components/swap/SwapAnimation.vue:115
476+
msgid "Don't close your wallet until the swap is complete!"
477+
msgstr "Schließe dein Wallet nicht bis der Tausch abgeschlossen ist!"
478+
475479
#: src/components/swap/SwapNotification.vue:27
476-
msgid "Don't close your Wallet"
477-
msgstr "Schließe dein Wallet nicht"
480+
msgid "Don't close your wallet!"
481+
msgstr "Schließe dein Wallet nicht!"
478482

479483
#: src/components/modals/BtcReceiveModal.vue:96
480484
msgid "Don’t reuse addresses and create a new one for every transaction."
@@ -546,7 +550,7 @@ msgstr "Adresse eingeben"
546550
msgid "Enter recipient address..."
547551
msgstr "Empfängeradresse eingeben..."
548552

549-
#: src/components/swap/SwapAnimation.vue:116
553+
#: src/components/swap/SwapAnimation.vue:120
550554
msgid "Error:"
551555
msgstr "Error:"
552556

@@ -741,8 +745,8 @@ msgid "It is fast, safe and makes you truly independent."
741745
msgstr "Sie ist schnell, sicher und macht dich unabhängig."
742746

743747
#: src/components/swap/SwapNotification.vue:30
744-
msgid "It's safe to close your Wallet now"
745-
msgstr "Es ist sicher, dein Wallet jetzt zu schließen"
748+
msgid "It's safe to close your wallet now"
749+
msgstr "Du kannst dein Wallet jetzt schließen"
746750

747751
#: src/components/BtcCopiedAddress.vue:9
748752
msgid "Label the sender"
@@ -1038,7 +1042,7 @@ msgstr ""
10381042
msgid "Retry"
10391043
msgstr "Erneut versuchen"
10401044

1041-
#: src/components/swap/SwapAnimation.vue:118
1045+
#: src/components/swap/SwapAnimation.vue:122
10421046
msgid "Retrying..."
10431047
msgstr "Versuche erneut..."
10441048

src/i18n/en.po

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,12 @@ msgstr ""
417417
msgid "Disclaimer"
418418
msgstr ""
419419

420+
#: src/components/swap/SwapAnimation.vue:115
421+
msgid "Don't close your wallet until the swap is complete!"
422+
msgstr ""
423+
420424
#: src/components/swap/SwapNotification.vue:27
421-
msgid "Don't close your Wallet"
425+
msgid "Don't close your wallet!"
422426
msgstr ""
423427

424428
#: src/components/modals/BtcReceiveModal.vue:96
@@ -482,7 +486,7 @@ msgstr ""
482486
msgid "Enter recipient address..."
483487
msgstr ""
484488

485-
#: src/components/swap/SwapAnimation.vue:116
489+
#: src/components/swap/SwapAnimation.vue:120
486490
msgid "Error:"
487491
msgstr ""
488492

@@ -666,7 +670,7 @@ msgid "It is fast, safe and makes you truly independent."
666670
msgstr ""
667671

668672
#: src/components/swap/SwapNotification.vue:30
669-
msgid "It's safe to close your Wallet now"
673+
msgid "It's safe to close your wallet now"
670674
msgstr ""
671675

672676
#: src/components/BtcCopiedAddress.vue:9
@@ -934,7 +938,7 @@ msgstr ""
934938
msgid "Retry"
935939
msgstr ""
936940

937-
#: src/components/swap/SwapAnimation.vue:118
941+
#: src/components/swap/SwapAnimation.vue:122
938942
msgid "Retrying..."
939943
msgstr ""
940944

src/i18n/es.po

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# Translators:
33
# Rhody Lugo <[email protected]>, 2020
44
# Daniel, 2020
5-
# Sören <[email protected]>, 2020
65
# Ricardo Barquero Carranza <[email protected]>, 2020
6+
# Sören <[email protected]>, 2020
77
#
88
msgid ""
99
msgstr ""
10-
"Last-Translator: Ricardo Barquero Carranza <[email protected]>, 2020\n"
10+
"Last-Translator: Sören <[email protected]>, 2020\n"
1111
"Language-Team: Spanish (https://www.transifex.com/nimiq-foundation/teams/107022/es/)\n"
1212
"Content-Type: text/plain; charset=UTF-8\n"
1313
"Language: es\n"
@@ -476,9 +476,13 @@ msgstr "Programador"
476476
msgid "Disclaimer"
477477
msgstr "Aviso legal"
478478

479+
#: src/components/swap/SwapAnimation.vue:115
480+
msgid "Don't close your wallet until the swap is complete!"
481+
msgstr ""
482+
479483
#: src/components/swap/SwapNotification.vue:27
480-
msgid "Don't close your Wallet"
481-
msgstr "No cierre su Billetera"
484+
msgid "Don't close your wallet!"
485+
msgstr "¡No cierre su billetera!"
482486

483487
#: src/components/modals/BtcReceiveModal.vue:96
484488
msgid "Don’t reuse addresses and create a new one for every transaction."
@@ -550,7 +554,7 @@ msgstr "Insertar dirección"
550554
msgid "Enter recipient address..."
551555
msgstr "Ingrese la dirección del destinatario..."
552556

553-
#: src/components/swap/SwapAnimation.vue:116
557+
#: src/components/swap/SwapAnimation.vue:120
554558
msgid "Error:"
555559
msgstr "Error:"
556560

@@ -745,8 +749,8 @@ msgid "It is fast, safe and makes you truly independent."
745749
msgstr "Es rápido, seguro y le hace realmente independiente."
746750

747751
#: src/components/swap/SwapNotification.vue:30
748-
msgid "It's safe to close your Wallet now"
749-
msgstr "Es seguro cerrar su Billetera ahora"
752+
msgid "It's safe to close your wallet now"
753+
msgstr "Es seguro cerrar su billetera ahora"
750754

751755
#: src/components/BtcCopiedAddress.vue:9
752756
msgid "Label the sender"
@@ -1043,7 +1047,7 @@ msgstr ""
10431047
msgid "Retry"
10441048
msgstr "Intente de nuevo"
10451049

1046-
#: src/components/swap/SwapAnimation.vue:118
1050+
#: src/components/swap/SwapAnimation.vue:122
10471051
msgid "Retrying..."
10481052
msgstr "Intentando de nuevo..."
10491053

src/i18n/fr.po

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,13 @@ msgstr "Développeur"
475475
msgid "Disclaimer"
476476
msgstr "Avertissement"
477477

478+
#: src/components/swap/SwapAnimation.vue:115
479+
msgid "Don't close your wallet until the swap is complete!"
480+
msgstr ""
481+
478482
#: src/components/swap/SwapNotification.vue:27
479-
msgid "Don't close your Wallet"
480-
msgstr "Ne fermez pas votre Wallet"
483+
msgid "Don't close your wallet!"
484+
msgstr "Ne fermez pas votre wallet!"
481485

482486
#: src/components/modals/BtcReceiveModal.vue:96
483487
msgid "Don’t reuse addresses and create a new one for every transaction."
@@ -552,7 +556,7 @@ msgstr "Entrez l'adresse"
552556
msgid "Enter recipient address..."
553557
msgstr "Entrez l'adresse du destinataire..."
554558

555-
#: src/components/swap/SwapAnimation.vue:116
559+
#: src/components/swap/SwapAnimation.vue:120
556560
msgid "Error:"
557561
msgstr "Erreur :"
558562

@@ -747,8 +751,8 @@ msgid "It is fast, safe and makes you truly independent."
747751
msgstr "Il est rapide, sûr et vous rend vraiment indépendant."
748752

749753
#: src/components/swap/SwapNotification.vue:30
750-
msgid "It's safe to close your Wallet now"
751-
msgstr "Vous pouvez maintenant fermer votre Wallet en toute sécurité"
754+
msgid "It's safe to close your wallet now"
755+
msgstr "Vous pouvez maintenant fermer votre wallet en toute sécurité"
752756

753757
#: src/components/BtcCopiedAddress.vue:9
754758
msgid "Label the sender"
@@ -1044,7 +1048,7 @@ msgstr ""
10441048
msgid "Retry"
10451049
msgstr "Réessayer"
10461050

1047-
#: src/components/swap/SwapAnimation.vue:118
1051+
#: src/components/swap/SwapAnimation.vue:122
10481052
msgid "Retrying..."
10491053
msgstr "Nouvelle tentative..."
10501054

src/i18n/nl.po

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#
22
# Translators:
3-
# Fons <[email protected]>, 2020
43
# Jim <[email protected]>, 2020
54
# BlockchainShay <[email protected]>, 2020
65
# Stefan, 2020
6+
# Fons <[email protected]>, 2020
7+
# Sören <[email protected]>, 2020
78
#
89
msgid ""
910
msgstr ""
10-
"Last-Translator: Stefan, 2020\n"
11+
"Last-Translator: Sören <[email protected]>, 2020\n"
1112
"Language-Team: Dutch (https://www.transifex.com/nimiq-foundation/teams/107022/nl/)\n"
1213
"Content-Type: text/plain; charset=UTF-8\n"
1314
"Language: nl\n"
@@ -100,7 +101,7 @@ msgstr "Activeer Bitcoin"
100101

101102
#: src/components/layouts/Settings.vue:131
102103
msgid "Add"
103-
msgstr ""
104+
msgstr "Toevoegen"
104105

105106
#: src/components/BtcCopiedAddress.vue:14
106107
msgid ""
@@ -129,7 +130,7 @@ msgstr "Adres toevoegen"
129130

130131
#: src/components/layouts/Settings.vue:127
131132
msgid "Add an existing vesting contract to your wallet."
132-
msgstr ""
133+
msgstr "Voeg een bestaand vestingcontract toe aan je wallet."
133134

134135
#: src/components/modals/BtcActivationModal.vue:8
135136
msgid ""
@@ -474,9 +475,13 @@ msgstr "Ontwikkelaar"
474475
msgid "Disclaimer"
475476
msgstr "Disclaimer"
476477

478+
#: src/components/swap/SwapAnimation.vue:115
479+
msgid "Don't close your wallet until the swap is complete!"
480+
msgstr ""
481+
477482
#: src/components/swap/SwapNotification.vue:27
478-
msgid "Don't close your Wallet"
479-
msgstr "Sluit de app niet af"
483+
msgid "Don't close your wallet!"
484+
msgstr "Sluit de app niet af!"
480485

481486
#: src/components/modals/BtcReceiveModal.vue:96
482487
msgid "Don’t reuse addresses and create a new one for every transaction."
@@ -548,7 +553,7 @@ msgstr "Vul adres in"
548553
msgid "Enter recipient address..."
549554
msgstr "Voer het adres van de ontvanger in..."
550555

551-
#: src/components/swap/SwapAnimation.vue:116
556+
#: src/components/swap/SwapAnimation.vue:120
552557
msgid "Error:"
553558
msgstr "Fout:"
554559

@@ -743,7 +748,7 @@ msgid "It is fast, safe and makes you truly independent."
743748
msgstr "Het is snel, veilig en maakt je echt onafhankelijk."
744749

745750
#: src/components/swap/SwapNotification.vue:30
746-
msgid "It's safe to close your Wallet now"
751+
msgid "It's safe to close your wallet now"
747752
msgstr "Het is veilig om je portemonnee nu te sluiten"
748753

749754
#: src/components/BtcCopiedAddress.vue:9
@@ -1037,7 +1042,7 @@ msgstr "Reset je wallet instellingen en herlaad de data van de blockchain."
10371042
msgid "Retry"
10381043
msgstr "Probeer opnieuw"
10391044

1040-
#: src/components/swap/SwapAnimation.vue:118
1045+
#: src/components/swap/SwapAnimation.vue:122
10411046
msgid "Retrying..."
10421047
msgstr "Opnieuw proberen..."
10431048

@@ -1423,7 +1428,7 @@ msgstr "Gebruik de slider of vul de waardes in om een swap in te stellen."
14231428

14241429
#: src/components/layouts/Settings.vue:125
14251430
msgid "Vesting Contract"
1426-
msgstr ""
1431+
msgstr "Vestingcontract"
14271432

14281433
#: src/components/modals/MigrationWelcomeModal.vue:88
14291434
msgid "What else?"

0 commit comments

Comments
 (0)