mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
feat: Add Coin Title to Seed Page Title (#2364)
This commit is contained in:
@@ -16,7 +16,7 @@ class WalletSeedPage extends BasePage {
|
||||
WalletSeedPage(this.walletSeedViewModel, {required this.isNewWalletCreated});
|
||||
|
||||
@override
|
||||
String get title => S.current.seed_title;
|
||||
String get title => '${walletSeedViewModel.walletType} ${S.current.seed_title}';
|
||||
|
||||
final bool isNewWalletCreated;
|
||||
final WalletSeedViewModel walletSeedViewModel;
|
||||
|
||||
@@ -20,7 +20,7 @@ class WalletKeysViewModel = WalletKeysViewModelBase with _$WalletKeysViewModel;
|
||||
|
||||
abstract class WalletKeysViewModelBase with Store {
|
||||
WalletKeysViewModelBase(this._appStore)
|
||||
: title = S.current.wallet_keys,
|
||||
: title = '${walletTypeToString(_appStore.wallet!.type)} ${S.current.wallet_keys}',
|
||||
_wallet = _appStore.wallet!,
|
||||
_walletName = _appStore.wallet!.type.name,
|
||||
_restoreHeight = _appStore.wallet!.walletInfo.restoreHeight,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:cake_wallet/utils/feature_flag.dart';
|
||||
import 'package:cw_core/wallet_type.dart';
|
||||
import 'package:mobx/mobx.dart';
|
||||
import 'package:cw_core/wallet_base.dart';
|
||||
|
||||
@@ -12,6 +13,7 @@ abstract class WalletSeedViewModelBase with Store {
|
||||
WalletSeedViewModelBase(WalletBase wallet)
|
||||
: name = wallet.name,
|
||||
seed = wallet.seed!,
|
||||
walletType = walletTypeToString(wallet.type),
|
||||
currentOptions = ObservableList<String>(),
|
||||
verificationIndices = ObservableList<int>() {
|
||||
setupSeedVerification();
|
||||
@@ -23,6 +25,9 @@ abstract class WalletSeedViewModelBase with Store {
|
||||
@observable
|
||||
String seed;
|
||||
|
||||
@observable
|
||||
String walletType;
|
||||
|
||||
/// The Regex split the words based on any whitespace character.
|
||||
///
|
||||
/// Either standard ASCII space (U+0020) or the full-width space character (U+3000) used by the Japanese.
|
||||
|
||||
Reference in New Issue
Block a user