Fixed issue with wallet form feild and made page selecor in dashboard into a router
This commit is contained in:
@@ -45,6 +45,7 @@ class PageSelectorProvider extends ChangeNotifier {
|
||||
}
|
||||
|
||||
void selectPage(PayoutDestination dest) {
|
||||
if (_selected == dest) return;
|
||||
_selected = dest;
|
||||
notifyListeners();
|
||||
}
|
||||
@@ -95,7 +96,7 @@ class PageSelectorProvider extends ChangeNotifier {
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void goBackFromPayment() {
|
||||
PayoutDestination goBackFromPayment() {
|
||||
_selected = _previousDestination ??
|
||||
(_cameFromRecipientList
|
||||
? PayoutDestination.recipients
|
||||
@@ -104,6 +105,7 @@ class PageSelectorProvider extends ChangeNotifier {
|
||||
_previousDestination = null;
|
||||
_cameFromRecipientList = false;
|
||||
notifyListeners();
|
||||
return _selected;
|
||||
}
|
||||
|
||||
void goBackFromWalletEdit() {
|
||||
@@ -186,4 +188,4 @@ class PageSelectorProvider extends ChangeNotifier {
|
||||
|
||||
Recipient? get selectedRecipient => recipientProvider?.selectedRecipient;
|
||||
Wallet? get selectedWallet => walletsProvider?.selectedWallet;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user