mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-02 12:14:09 +01: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});
|
WalletSeedPage(this.walletSeedViewModel, {required this.isNewWalletCreated});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get title => S.current.seed_title;
|
String get title => '${walletSeedViewModel.walletType} ${S.current.seed_title}';
|
||||||
|
|
||||||
final bool isNewWalletCreated;
|
final bool isNewWalletCreated;
|
||||||
final WalletSeedViewModel walletSeedViewModel;
|
final WalletSeedViewModel walletSeedViewModel;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class WalletKeysViewModel = WalletKeysViewModelBase with _$WalletKeysViewModel;
|
|||||||
|
|
||||||
abstract class WalletKeysViewModelBase with Store {
|
abstract class WalletKeysViewModelBase with Store {
|
||||||
WalletKeysViewModelBase(this._appStore)
|
WalletKeysViewModelBase(this._appStore)
|
||||||
: title = S.current.wallet_keys,
|
: title = '${walletTypeToString(_appStore.wallet!.type)} ${S.current.wallet_keys}',
|
||||||
_wallet = _appStore.wallet!,
|
_wallet = _appStore.wallet!,
|
||||||
_walletName = _appStore.wallet!.type.name,
|
_walletName = _appStore.wallet!.type.name,
|
||||||
_restoreHeight = _appStore.wallet!.walletInfo.restoreHeight,
|
_restoreHeight = _appStore.wallet!.walletInfo.restoreHeight,
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
|
||||||
import 'package:cake_wallet/utils/feature_flag.dart';
|
import 'package:cake_wallet/utils/feature_flag.dart';
|
||||||
|
import 'package:cw_core/wallet_type.dart';
|
||||||
import 'package:mobx/mobx.dart';
|
import 'package:mobx/mobx.dart';
|
||||||
import 'package:cw_core/wallet_base.dart';
|
import 'package:cw_core/wallet_base.dart';
|
||||||
|
|
||||||
@@ -12,6 +13,7 @@ abstract class WalletSeedViewModelBase with Store {
|
|||||||
WalletSeedViewModelBase(WalletBase wallet)
|
WalletSeedViewModelBase(WalletBase wallet)
|
||||||
: name = wallet.name,
|
: name = wallet.name,
|
||||||
seed = wallet.seed!,
|
seed = wallet.seed!,
|
||||||
|
walletType = walletTypeToString(wallet.type),
|
||||||
currentOptions = ObservableList<String>(),
|
currentOptions = ObservableList<String>(),
|
||||||
verificationIndices = ObservableList<int>() {
|
verificationIndices = ObservableList<int>() {
|
||||||
setupSeedVerification();
|
setupSeedVerification();
|
||||||
@@ -23,6 +25,9 @@ abstract class WalletSeedViewModelBase with Store {
|
|||||||
@observable
|
@observable
|
||||||
String seed;
|
String seed;
|
||||||
|
|
||||||
|
@observable
|
||||||
|
String walletType;
|
||||||
|
|
||||||
/// The Regex split the words based on any whitespace character.
|
/// 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.
|
/// 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