aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/app.js4
-rw-r--r--src/i18n.js1
-rw-r--r--tools/ark/gift-shot.js6
3 files changed, 10 insertions, 1 deletions
diff --git a/src/app.js b/src/app.js
index 53cb35b..486fa5b 100644
--- a/src/app.js
+++ b/src/app.js
@@ -2438,7 +2438,9 @@ function claimScreen() {
h('div', { class: 'amt', style: 'font-size:30px' },
h('span', { class: 'amount-pos' }, fmtAmount(total)), ' ', unitTag('unit')
),
- h('p', { class: 'muted', style: 'margin:0' }, t('claimBody'))
+ h('p', { class: 'muted', style: 'margin:0' },
+ (() => { const acc = activeAccount(); // claiming into an existing wallet vs a brand-new one
+ return acc && !acc.provisional ? t('claimBodyExisting', { name: acc.label }) : t('claimBody'); })())
),
ui.claimError && h('div', { class: 'notice err' }, ui.claimError),
ui.busy || ui.claimChecking
diff --git a/src/i18n.js b/src/i18n.js
index 552795d..83af70c 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -288,6 +288,7 @@ const STR = {
giftRevoked: 'Gift revoked',
copyLink: 'Copy link',
claimBody: 'Claim it into a brand-new wallet that only you control.',
+ claimBodyExisting: 'Claim it into your wallet \u201c{name}\u201d.',
claimIntoPrompt: 'Choose where to receive it.',
claimNewWallet: 'Receive into a new wallet',
claimIntoExisting: 'Receive into one of your wallets:',
diff --git a/tools/ark/gift-shot.js b/tools/ark/gift-shot.js
index 9874e8c..b4bf2d1 100644
--- a/tools/ark/gift-shot.js
+++ b/tools/ark/gift-shot.js
@@ -77,6 +77,12 @@ const shown = await waitText('Choose where', 15000);
console.log('chooser shown:', shown);
await sleep(400);
await page.screenshot({ path: '/tmp/gift-choose.png' });
+// pick the existing wallet and capture the claim screen copy
+await clickText('button', 'Wallet 1');
+await waitText('Claim it', 15000);
+await sleep(400);
+await page.screenshot({ path: '/tmp/gift-claim-existing.png' });
+console.log('claim copy:', await page.evaluate(() => [...document.querySelectorAll('p')].map((e) => e.textContent).find((x) => x.includes('Claim it'))));
console.log('done');
await browser.close();
dev.kill();