fix: panel resizer callback

This commit is contained in:
Mo Bitar
2020-04-22 08:32:51 -05:00
parent 2ce981a1ea
commit 7a615bc137
8 changed files with 38 additions and 27 deletions

View File

@@ -107,13 +107,17 @@ class FooterViewCtrl extends PureViewCtrl {
async onAppLaunch() {
super.onAppLaunch();
this.reloadPasscodeStatus();
this.reloadUser();
this.reloadUpgradeStatus();
this.user = this.application!.getUser();
this.updateOfflineStatus();
this.findErrors();
this.streamItems();
this.registerComponentHandler();
}
reloadUser() {
this.user = this.application!.getUser();
}
async reloadPasscodeStatus() {
const hasPasscode = this.application!.hasPasscode();
@@ -193,6 +197,11 @@ class FooterViewCtrl extends PureViewCtrl {
} else if (eventName === ApplicationEvent.FailedSync) {
this.findErrors();
this.updateOfflineStatus();
} else if (
eventName === ApplicationEvent.SignedIn ||
eventName === ApplicationEvent.SignedOut
) {
this.reloadUser();
}
}