Root ctrl updates
This commit is contained in:
@@ -51,9 +51,12 @@ class RootCtrl extends PureCtrl {
|
|||||||
super.onAppStart();
|
super.onAppStart();
|
||||||
this.overrideComponentManagerFunctions();
|
this.overrideComponentManagerFunctions();
|
||||||
this.application.componentManager.setDesktopManager(this.desktopManager);
|
this.application.componentManager.setDesktopManager(this.desktopManager);
|
||||||
this.setState({ ready: true });
|
this.setState({
|
||||||
|
ready: true,
|
||||||
|
needsUnlock: this.application.hasPasscode()
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onAppLaunch() {
|
onAppLaunch() {
|
||||||
super.onAppLaunch();
|
super.onAppLaunch();
|
||||||
this.setState({ needsUnlock: false });
|
this.setState({ needsUnlock: false });
|
||||||
@@ -64,10 +67,11 @@ class RootCtrl extends PureCtrl {
|
|||||||
async watchLockscreenValue() {
|
async watchLockscreenValue() {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
const onLockscreenValue = (value) => {
|
const onLockscreenValue = (value) => {
|
||||||
resolve(new ChallengeResponse({
|
const response = new ChallengeResponse({
|
||||||
challenge: Challenges.LocalPasscode,
|
challenge: Challenges.LocalPasscode,
|
||||||
value: value
|
value: value
|
||||||
}));
|
});
|
||||||
|
resolve([response]);
|
||||||
};
|
};
|
||||||
this.setState({ onLockscreenValue });
|
this.setState({ onLockscreenValue });
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
.main-ui-view(
|
.main-ui-view(
|
||||||
ng-class='self.platformString'
|
ng-class='self.platformString'
|
||||||
ng-if='self.state.ready'
|
|
||||||
)
|
)
|
||||||
lock-screen(
|
lock-screen(
|
||||||
ng-if='self.state.needsUnlock'
|
ng-if='self.state.needsUnlock'
|
||||||
@@ -9,12 +8,12 @@
|
|||||||
)
|
)
|
||||||
#app.app(
|
#app.app(
|
||||||
ng-class='self.state.appClass',
|
ng-class='self.state.appClass',
|
||||||
ng-if='!self.state.needsUnlock'
|
ng-if='!self.state.needsUnlock && self.state.ready'
|
||||||
)
|
)
|
||||||
tags-panel
|
tags-panel
|
||||||
notes-panel
|
notes-panel
|
||||||
editor-panel
|
editor-panel
|
||||||
|
|
||||||
footer(
|
footer(
|
||||||
ng-if='!self.state.needsUnlock'
|
ng-if='!self.state.needsUnlock && self.state.ready'
|
||||||
)
|
)
|
||||||
86684
dist/javascripts/app.js
vendored
86684
dist/javascripts/app.js
vendored
File diff suppressed because one or more lines are too long
2
dist/javascripts/app.js.map
vendored
2
dist/javascripts/app.js.map
vendored
File diff suppressed because one or more lines are too long
2657
dist/stylesheets/app.css
vendored
2657
dist/stylesheets/app.css
vendored
File diff suppressed because one or more lines are too long
2
dist/stylesheets/app.css.map
vendored
2
dist/stylesheets/app.css.map
vendored
File diff suppressed because one or more lines are too long
@@ -8,6 +8,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "webpack-dev-server --progress",
|
"start": "webpack-dev-server --progress",
|
||||||
|
"watch": "webpack --mode development -w",
|
||||||
"bundle": "webpack --mode production",
|
"bundle": "webpack --mode production",
|
||||||
"build": "bundle install && npm install && npm run bundle",
|
"build": "bundle install && npm install && npm run bundle",
|
||||||
"submodules": "git submodule update --init --force --remote",
|
"submodules": "git submodule update --init --force --remote",
|
||||||
|
|||||||
Reference in New Issue
Block a user