mirror of
https://github.com/documize/community.git
synced 2025-07-26 00:29:47 +02:00
cosmetics
This commit is contained in:
parent
af97efec83
commit
90eb4f9517
2 changed files with 4 additions and 3 deletions
|
@ -24,6 +24,8 @@ export default Ember.Route.extend(ApplicationRouteMixin, TooltipMixin, {
|
||||||
pinned: service(),
|
pinned: service(),
|
||||||
|
|
||||||
beforeModel(transition) {
|
beforeModel(transition) {
|
||||||
|
this._super(...arguments);
|
||||||
|
|
||||||
return this.get('appMeta').boot(transition.targetName).then(data => {
|
return this.get('appMeta').boot(transition.targetName).then(data => {
|
||||||
if (this.get('session.session.authenticator') !== "authenticator:documize" &&
|
if (this.get('session.session.authenticator') !== "authenticator:documize" &&
|
||||||
this.get('session.session.authenticator') !== "authenticator:keycloak" &&
|
this.get('session.session.authenticator') !== "authenticator:keycloak" &&
|
||||||
|
@ -52,8 +54,7 @@ export default Ember.Route.extend(ApplicationRouteMixin, TooltipMixin, {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return true to bubble this event to any parent route.
|
return true; // bubble this event to any parent route
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -42,7 +42,7 @@ export default SimpleAuthSession.extend({
|
||||||
return data.get('global');
|
return data.get('global');
|
||||||
}),
|
}),
|
||||||
|
|
||||||
init: function () {
|
init() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
|
||||||
this.set('isMac', is.mac());
|
this.set('isMac', is.mac());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue