Skip to content

Commit eac3d6d

Browse files
authored
Merge pull request #777 from Adamant-im/fix/wrapper-fixes
fix: wrap SendFunds into NavigationWrapper
2 parents d4ad55d + 6a5f6cb commit eac3d6d

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

src/components/NavigationWrapper.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
</v-container>
3535
</div>
3636
</template>
37+
3738
<script setup lang="ts">
3839
import AppToolbarCentered from '@/components/AppToolbarCentered.vue'
3940
import { computed, useSlots } from 'vue'
@@ -79,6 +80,9 @@ const title = computed(() => {
7980
case 'Transactions':
8081
case 'Transaction':
8182
return (route.params.txId as string) || t('transaction.transactions')
83+
case 'SendFunds':
84+
return t('transfer.page_title')
85+
8286
default:
8387
return t('options.page_title')
8488
}

src/locales/de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@
232232
"max_transfer": "Max to transfer",
233233
"no_address_text": "This user does not have a public {crypto} wallet yet. To get it, he should login into messenger when his balance is more than 0.001 ADM.",
234234
"no_address_title": "Recipient has no {crypto} wallet yet",
235+
"page_title": "Send funds",
235236
"send_button": "Betrag senden",
236237
"to_address_label": "An die Adresse",
237238
"to_name_label": "To {name}"

src/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@
355355
"no_address_title": "Recipient has no public {crypto} wallet",
356356
"legacy_address_text": "This user has a legacy {crypto} wallet. It will automatically update when they log in using the newest app version.",
357357
"legacy_address_title": "Recipient has legacy {crypto} wallet",
358+
"page_title": "Send funds",
358359
"send_button": "Send",
359360
"to_address_label": "To Address",
360361
"to_name_label": "To {name}",

src/locales/ru.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@
355355
"no_address_title": "У получателя нет публичного {crypto}-кошелька",
356356
"legacy_address_text": "У этого пользователя устаревший адрес {crypto}-кошелька. Адрес обновится автоматически, когда он войдет в аккаунт в новой версии приложения.",
357357
"legacy_address_title": "У получателя устаревший {crypto}-кошелек",
358+
"page_title": "Отправить монеты",
358359
"send_button": "Отправить",
359360
"to_address_label": "Адрес получателя",
360361
"to_name_label": "Получатель: {name}",

src/locales/zh.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@
344344
"no_address_title": "R收件人还没有 {crypto} 钱包",
345345
"legacy_address_text": "此用户有一个旧的 {crypto} 钱包。他们必须登录Messenger,余额超过 0.001 ADM才能更新 {crypto} 的钱包地址",
346346
"legacy_address_title": "收件人还有一个旧的 {crypto} 钱包",
347+
"page_title": "发送资金",
347348
"send_button": "发送",
348349
"to_address_label": "收件人",
349350
"to_name_label": "收件人 {name}",

src/views/SendFunds.vue

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,30 @@
11
<template>
2-
<div :class="className" class="w-100">
3-
<app-toolbar-centered app :title="$t('home.send_btn')" flat absolute disable-max-width />
4-
5-
<v-container fluid class="px-0 py-0" :class="`${className}__content`">
6-
<v-row justify="center" no-gutters>
7-
<container padding disable-max-width>
8-
<send-funds-form
9-
class="pt-5"
10-
:crypto-currency="cryptoCurrency"
11-
:recipient-address="recipientAddress"
12-
:amount-to-send="amountToSend"
13-
:address-readonly="comeFromChat"
14-
:reply-to-id="$route.query.replyToId"
15-
@send="onSend"
16-
@error="onError"
17-
/>
18-
</container>
19-
</v-row>
20-
</v-container>
21-
</div>
2+
<navigation-wrapper :class="className">
3+
<send-funds-form
4+
class="pt-5"
5+
:crypto-currency="cryptoCurrency"
6+
:recipient-address="recipientAddress"
7+
:amount-to-send="amountToSend"
8+
:address-readonly="comeFromChat"
9+
:reply-to-id="$route.query.replyToId"
10+
@send="onSend"
11+
@error="onError"
12+
/>
13+
</navigation-wrapper>
2214
</template>
2315

2416
<script>
2517
import validateAddress from '@/lib/validateAddress'
2618
import { isNumeric } from '@/lib/numericHelpers'
2719
28-
import AppToolbarCentered from '@/components/AppToolbarCentered.vue'
2920
import SendFundsForm from '@/components/SendFundsForm.vue'
3021
import { AllCryptos } from '@/lib/constants/cryptos'
3122
import { vibrate } from '@/lib/vibrate'
23+
import NavigationWrapper from '@/components/NavigationWrapper.vue'
3224
3325
export default {
3426
components: {
35-
AppToolbarCentered,
27+
NavigationWrapper,
3628
SendFundsForm
3729
},
3830
data: () => ({

0 commit comments

Comments
 (0)