From b55575957d9f8aa7e4e2dc03467c86a28c718b2a Mon Sep 17 00:00:00 2001 From: Luki Centuri Date: Fri, 25 Oct 2024 14:05:29 +0700 Subject: [PATCH] feat: move username detail (#251) --- components/account/home/AccountDetails.vue | 46 ++++++++++++++++++++-- layouts/account.vue | 12 +++++- modules/ui-library/runtime/plugin.ts | 2 + 3 files changed, 55 insertions(+), 5 deletions(-) diff --git a/components/account/home/AccountDetails.vue b/components/account/home/AccountDetails.vue index a4fb33e4..42407f08 100644 --- a/components/account/home/AccountDetails.vue +++ b/components/account/home/AccountDetails.vue @@ -1,15 +1,27 @@ @@ -22,13 +34,41 @@ const { t } = useI18n();
+
+ +
+ To change your email, please contact our support tem via + + {{ rotkiEmail }} + +
+
diff --git a/layouts/account.vue b/layouts/account.vue index 78887f90..d99f1ca7 100644 --- a/layouts/account.vue +++ b/layouts/account.vue @@ -10,7 +10,15 @@ const { t } = useI18n(); const store = useMainStore(); const { account } = storeToRefs(store); -const username = computed(() => get(account)?.username); +const name = computed(() => { + const accountVal = get(account); + if (!accountVal) + return ''; + + const { firstName, lastName } = accountVal.address; + + return `${firstName} ${lastName}`; +}); useHead({ title: 'account', @@ -34,7 +42,7 @@ const tabModelValue = ref();
- {{ t('account.welcome') }} {{ username }} + {{ t('account.welcome') }} {{ name }}