diff --git a/webApp/src/i18n/lang-ar.js b/webApp/src/i18n/lang-ar.js index 94e800e..e0ab2dd 100644 --- a/webApp/src/i18n/lang-ar.js +++ b/webApp/src/i18n/lang-ar.js @@ -11,6 +11,9 @@ const i18n_ar = { buttons: { import: "استيراد المحفظة", create: "إنشاء محفظة" + }, + toast: { + wallet_created: 'تم إنشاء المحفظة بنجاح' } }, settings: { diff --git a/webApp/src/i18n/lang-de.js b/webApp/src/i18n/lang-de.js index defdca5..f7cb131 100644 --- a/webApp/src/i18n/lang-de.js +++ b/webApp/src/i18n/lang-de.js @@ -11,6 +11,9 @@ const i18n_de = { buttons: { import: "Brieftasche importieren", create: "Brieftasche erstellen" + }, + toast: { + wallet_created: 'Brieftasche erfolgreich erstellt' } }, settings: { diff --git a/webApp/src/i18n/lang-en.js b/webApp/src/i18n/lang-en.js index dc847c8..160ec76 100644 --- a/webApp/src/i18n/lang-en.js +++ b/webApp/src/i18n/lang-en.js @@ -11,7 +11,10 @@ const i18n_en = { buttons: { import: "Import Wallet", create: "Create Wallet" - } + }, + toast: { + wallet_created: 'Wallet created successfully' + }, }, settings: { language: { diff --git a/webApp/src/i18n/lang-fa.js b/webApp/src/i18n/lang-fa.js index b7336ee..d563407 100644 --- a/webApp/src/i18n/lang-fa.js +++ b/webApp/src/i18n/lang-fa.js @@ -11,6 +11,9 @@ const i18n_fa = { buttons: { import: 'وارد کردن کیف پول', create: 'ایجاد کیف پول', + }, + toast: { + wallet_created: 'کیف پول با موفقیت ایجاد شد' } }, settings: { diff --git a/webApp/src/i18n/lang-fr.js b/webApp/src/i18n/lang-fr.js index 33f453a..379cc43 100644 --- a/webApp/src/i18n/lang-fr.js +++ b/webApp/src/i18n/lang-fr.js @@ -11,6 +11,9 @@ const i18n_fr = { buttons: { import: "Importer le portefeuille", create: "Créer un portefeuille" + }, + toast: { + wallet_created: 'Portefeuille créé avec succès' } }, settings: { diff --git a/webApp/src/i18n/lang-tr.js b/webApp/src/i18n/lang-tr.js index a630c61..02a8286 100644 --- a/webApp/src/i18n/lang-tr.js +++ b/webApp/src/i18n/lang-tr.js @@ -11,6 +11,9 @@ const i18n_tr = { buttons: { import: "Cüzdanı İçe Aktar", create: "Cüzdan Oluştur" + }, + toast: { + wallet_created: 'Cüzdan başarıyla oluşturuldu' } }, settings: { diff --git a/webApp/src/views/Home.vue b/webApp/src/views/Home.vue index ec2e6ac..9799816 100644 --- a/webApp/src/views/Home.vue +++ b/webApp/src/views/Home.vue @@ -54,12 +54,16 @@ onMounted(async () => { - let data = await Utils.DPXSendRequest(`/balance/${ wallet.value }`, [], 'GET', i18nLocale); + if (wallet.value) { - if (data && `result` in data && data.status === 'success') { + let data = await Utils.DPXSendRequest(`/balance/${ wallet.value }`, [], 'GET', i18nLocale); - balance.value = data.result; - rank.value = ranks.data.filter((item) => (item.min <= balance.value)).slice(-1)[0]; + if (data && `result` in data && data.status === 'success') { + + balance.value = data.result; + rank.value = ranks.data.filter((item) => (item.min <= balance.value)).slice(-1)[0]; + + } } diff --git a/webApp/src/views/Login.vue b/webApp/src/views/Login.vue index 8eb1c0d..764c615 100644 --- a/webApp/src/views/Login.vue +++ b/webApp/src/views/Login.vue @@ -1,10 +1,12 @@ @@ -43,7 +88,7 @@