mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
ae758756d8
* Fix sending for monero ledger * Ignore no tx keys found error * re-add Monero to Ledger enabled wallets * Fix No Element Exception on requireHardwareWalletConnection check * Fix Showing connection screen again * Maybe fix Race condition * fix namespace * Maybe fix Race condition and add missing pop * Minor fixes * Minor fixes * Fix minor localization * Fix minor localization * Add Text prompt if device is not showing after 10 seconds. --------- Co-authored-by: OmarHatem <omarh.ismail1@gmail.com> Co-authored-by: Czarek Nakamoto <cyjan@mrcyjanek.net>
32 lines
771 B
Dart
32 lines
771 B
Dart
import 'package:mobx/mobx.dart';
|
|
|
|
part 'authentication_store.g.dart';
|
|
|
|
class AuthenticationStore = AuthenticationStoreBase with _$AuthenticationStore;
|
|
|
|
enum AuthenticationState { uninitialized, installed, allowed, allowedCreate, _reset }
|
|
|
|
abstract class AuthenticationStoreBase with Store {
|
|
AuthenticationStoreBase() : state = AuthenticationState.uninitialized;
|
|
|
|
@observable
|
|
AuthenticationState state;
|
|
|
|
@action
|
|
void installed() {
|
|
state = AuthenticationState._reset;
|
|
state = AuthenticationState.installed;
|
|
}
|
|
|
|
@action
|
|
void allowed() {
|
|
state = AuthenticationState._reset;
|
|
state = AuthenticationState.allowed;
|
|
}
|
|
|
|
@action
|
|
void allowedCreate() {
|
|
state = AuthenticationState._reset;
|
|
state = AuthenticationState.allowedCreate;
|
|
}
|
|
}
|