Improvements to native ext mgr and password wizard

This commit is contained in:
Mo Bitar
2020-02-17 12:08:21 -06:00
parent 6fc53f3920
commit c6198a4612
12 changed files with 544 additions and 594 deletions

View File

@@ -14,14 +14,14 @@ export class PureCtrl {
this.$timeout = $timeout;
this.appState = appState;
this.application = application;
this.state = {};
this.state = this.getInitialState();
this.props = {};
$scope.$on('$destroy', () => {
this.unsubApp();
this.unsubState();
});
}
$onInit() {
this.addAppStateObserver();
this.addAppEventObserver();
@@ -29,8 +29,13 @@ export class PureCtrl {
/** @private */
async resetState() {
this.state = {};
await this.setState({});
this.state = this.getInitialState();
await this.setState(this.state);
}
/** @override */
getInitialState() {
return {};
}
async setState(state) {