ApplicationService integration

This commit is contained in:
Mo Bitar
2020-03-20 19:03:02 -05:00
parent 0ec0fd4872
commit 0ef1ce8ef1
9 changed files with 897 additions and 447 deletions

View File

@@ -45,9 +45,14 @@ class AccountMenuCtrl extends PureCtrl {
this.archiveManager = archiveManager;
this.godService = godService;
this.lockManager = lockManager;
this.appVersion = appVersion;
this.syncStatus = this.application.getSyncStatus();
}
this.state = {
appVersion: 'v' + (window.electronAppVersion || appVersion),
/** @override */
getInitialState() {
return {
appVersion: 'v' + (window.electronAppVersion || this.appVersion),
passcodeAutoLockOptions: this.lockManager.getAutoLockIntervalOptions(),
user: this.application.getUser(),
formData: {
@@ -56,7 +61,6 @@ class AccountMenuCtrl extends PureCtrl {
},
mutable: {}
};
this.syncStatus = this.application.getSyncStatus();
}
async onAppKeyChange() {