mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
fixed bug with app boot
This commit is contained in:
parent
4de19dcbec
commit
ca783dd323
9 changed files with 2673 additions and 1141 deletions
|
@ -62,22 +62,18 @@ export default Service.extend({
|
|||
return resolve(this);
|
||||
}
|
||||
|
||||
if (requestedRoute === 'secure') {
|
||||
this.setProperties({
|
||||
title: htmlSafe("Secure document viewing"),
|
||||
allowAnonymousAccess: true,
|
||||
secureMode: true
|
||||
});
|
||||
|
||||
this.get('localStorage').clearAll();
|
||||
|
||||
return resolve(this);
|
||||
}
|
||||
|
||||
return this.get('ajax').request('public/meta').then((response) => {
|
||||
this.setProperties(response);
|
||||
|
||||
if (is.not.include(requestedUrl, '/auth/')) {
|
||||
if (requestedRoute === 'secure') {
|
||||
this.setProperties({
|
||||
title: htmlSafe("Secure document viewing"),
|
||||
allowAnonymousAccess: true,
|
||||
secureMode: true
|
||||
});
|
||||
|
||||
this.get('localStorage').clearAll();
|
||||
} else if (is.not.include(requestedUrl, '/auth/')) {
|
||||
this.get('localStorage').storeSessionItem('entryUrl', requestedUrl);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue