From 598c5a1aa9680cd015b7bf484d7601a0fdade658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lloren=C3=A7?= Date: Mon, 18 Sep 2023 16:49:12 +0200 Subject: [PATCH] GIX-1890: Improve copy --- frontend/src/lib/i18n/en.json | 1 + frontend/src/lib/modals/neurons/DisburseMaturityModal.svelte | 4 ++-- frontend/src/lib/types/i18n.d.ts | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/i18n/en.json b/frontend/src/lib/i18n/en.json index 5e6e3a5eb51..7ce05cef47e 100644 --- a/frontend/src/lib/i18n/en.json +++ b/frontend/src/lib/i18n/en.json @@ -612,6 +612,7 @@ "spawn": "Spawn", "stake_maturity_disabled_tooltip": "Currently, you do not have any maturity available to stake into this neuron.", "disburse_maturity_disabled_tooltip": "Currently, you do not have any maturity available to disburse.", + "disburse_maturity_modal_disabled_tooltip": "You need at least $amount to disburse.", "stake_maturity_tooltip": "Merge Maturity has been replaced by Stake Maturity. Learn more.", "start_dissolve_description": "This will cause your neuron to lose its age bonus.\nAre you sure you wish to continue?", "stop_dissolve_description": "Are you sure you want to stop the dissolve process?", diff --git a/frontend/src/lib/modals/neurons/DisburseMaturityModal.svelte b/frontend/src/lib/modals/neurons/DisburseMaturityModal.svelte index 8311767ccb7..ff262ce5c05 100644 --- a/frontend/src/lib/modals/neurons/DisburseMaturityModal.svelte +++ b/frontend/src/lib/modals/neurons/DisburseMaturityModal.svelte @@ -48,8 +48,8 @@ $: disabledText = disableDisburse && percentageToDisburse > 0 ? replacePlaceholders( - $i18n.neuron_detail.disburse_maturity_disabled_tooltip, - { $fee: formatToken({ value: transactionFeeE8s }) } + $i18n.neuron_detail.disburse_maturity_modal_disabled_tooltip, + { $amount: formatToken({ value: transactionFeeE8s }) } ) : undefined; diff --git a/frontend/src/lib/types/i18n.d.ts b/frontend/src/lib/types/i18n.d.ts index 3d2f9f9b1dd..9a07da27e9e 100644 --- a/frontend/src/lib/types/i18n.d.ts +++ b/frontend/src/lib/types/i18n.d.ts @@ -635,6 +635,7 @@ interface I18nNeuron_detail { spawn: string; stake_maturity_disabled_tooltip: string; disburse_maturity_disabled_tooltip: string; + disburse_maturity_modal_disabled_tooltip: string; stake_maturity_tooltip: string; start_dissolve_description: string; stop_dissolve_description: string;