Component improvements

This commit is contained in:
Mo Bitar
2020-03-26 15:33:00 -05:00
parent 9d6c32890a
commit 822d8553b7
14 changed files with 242 additions and 206 deletions

View File

@@ -69,7 +69,9 @@ class ApplicationViewCtrl extends PureCtrl {
onAppStart() {
super.onAppStart();
this.overrideComponentManagerFunctions();
this.application.componentManager.setDesktopManager(this.application.getDesktopService());
this.application.componentManager.setDesktopManager(
this.application.getDesktopService()
);
this.setState({
ready: true,
needsUnlock: this.application.hasPasscode()
@@ -112,7 +114,7 @@ class ApplicationViewCtrl extends PureCtrl {
}
} else if (eventName === ApplicationEvents.InvalidSyncSession) {
this.showInvalidSessionAlert();
} else if(eventName === ApplicationEvents.LocalDatabaseReadError) {
} else if (eventName === ApplicationEvents.LocalDatabaseReadError) {
this.application.alertService.alert({
text: 'Unable to load local database. Please restart the app and try again.'
});