From 7533c2ccca3b610b4f23bb7472c7a22f4821e0c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren?= Date: Tue, 19 Nov 2024 10:03:18 -0600 Subject: [PATCH] Update Staking UI (hacky) --- src/components/staking/StakingGraphPage.vue | 20 + src/components/staking/StakingInfoPage.vue | 14 + .../staking/ValidatorDetailsOverlay.vue | 14 +- src/i18n/de.po | 288 +++++++------- src/i18n/en.po | 290 +++++++------- src/i18n/es.po | 288 +++++++------- src/i18n/fr.po | 370 ++++++++++-------- src/i18n/nl.po | 288 +++++++------- src/i18n/pt.po | 288 +++++++------- src/i18n/ru.po | 288 +++++++------- src/i18n/uk.po | 288 +++++++------- src/i18n/zh.po | 288 +++++++------- 12 files changed, 1416 insertions(+), 1308 deletions(-) diff --git a/src/components/staking/StakingGraphPage.vue b/src/components/staking/StakingGraphPage.vue index c5453a284..277e2b8c9 100644 --- a/src/components/staking/StakingGraphPage.vue +++ b/src/components/staking/StakingGraphPage.vue @@ -148,6 +148,12 @@ export default defineComponent({ ); const txs = await sendStaking({ transaction: transaction.serialize(), + recipientLabel: 'name' in activeValidator.value! ? activeValidator.value.name : 'Validator', + // @ts-expect-error Not typed yet in Hub + validatorImageUrl: 'logo' in activeValidator.value! + && !activeValidator.value.hasDefaultIcon + ? activeValidator.value.logo + : undefined, }).catch((error) => { throw new Error(error.data); }); @@ -185,6 +191,13 @@ export default defineComponent({ ); const txs = await sendStaking({ transaction: transaction.serialize(), + recipientLabel: 'name' in activeValidator.value! ? activeValidator.value.name : 'Validator', + // @ts-expect-error Not typed yet in Hub + validatorAddress: activeValidator.value!.address, + validatorImageUrl: ('logo' in activeValidator.value! + && !activeValidator.value.hasDefaultIcon) + ? activeValidator.value.logo + : undefined, }).catch((error) => { throw new Error(error.data); }); @@ -227,6 +240,13 @@ export default defineComponent({ ); const txs = await sendStaking({ transaction: transaction.serialize(), + recipientLabel: 'name' in activeValidator.value! ? activeValidator.value.name : 'Validator', + // @ts-expect-error Not typed yet in Hub + validatorAddress: activeValidator.value!.address, + validatorImageUrl: 'logo' in activeValidator.value! && !activeValidator.value.hasDefaultIcon + ? activeValidator.value.logo + : undefined, + amount: Math.abs(stakeDelta.value), }).catch((error) => { throw new Error(error.data); }); diff --git a/src/components/staking/StakingInfoPage.vue b/src/components/staking/StakingInfoPage.vue index d498f84b0..3740ae118 100644 --- a/src/components/staking/StakingInfoPage.vue +++ b/src/components/staking/StakingInfoPage.vue @@ -151,6 +151,7 @@ > {{ $t('unstake everything') }} +