TF-381 Add logout action in browser new UI

This commit is contained in:
dab246
2022-03-22 10:32:38 +07:00
committed by Dat H. Pham
parent 3cb2b58827
commit c3f73a8649
7 changed files with 124 additions and 7 deletions
@@ -106,6 +106,7 @@ class MailboxController extends BaseMailboxController {
void onReady() {
super.onReady();
mailboxDashBoardController.accountId.listen((accountId) {
log('MailboxController::onReady(): accountId: $accountId');
if (accountId != null) {
getAllMailboxAction(accountId);
}
@@ -148,6 +149,7 @@ class MailboxController extends BaseMailboxController {
super.onData(newState);
newState.map((success) async {
if (success is GetAllMailboxSuccess) {
log('MailboxController::onData(): ${allMailboxes.length}');
allMailboxes = success.mailboxList;
currentMailboxState = success.currentMailboxState;
await buildTree(allMailboxes);