mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +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(),
|
||||
|
||||
beforeModel(transition) {
|
||||
this._super(...arguments);
|
||||
|
||||
return this.get('appMeta').boot(transition.targetName).then(data => {
|
||||
if (this.get('session.session.authenticator') !== "authenticator:documize" &&
|
||||
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;
|
||||
return true; // bubble this event to any parent route
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -42,7 +42,7 @@ export default SimpleAuthSession.extend({
|
|||
return data.get('global');
|
||||
}),
|
||||
|
||||
init: function () {
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
|
||||
this.set('isMac', is.mac());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue