mirror of
https://github.com/documize/community.git
synced 2025-08-02 12:05:23 +02:00
Reafctor client side (EJS) constants
This commit is contained in:
parent
8fb001422a
commit
bde0091a4a
23 changed files with 118 additions and 367 deletions
|
@ -12,12 +12,13 @@
|
|||
import $ from 'jquery';
|
||||
import { inject as service } from '@ember/service';
|
||||
import Route from '@ember/routing/route';
|
||||
import constants from '../../../utils/constants';
|
||||
|
||||
export default Route.extend({
|
||||
appMeta: service(),
|
||||
|
||||
beforeModel() {
|
||||
let constants = this.get('constants');
|
||||
|
||||
if (this.get('appMeta.authProvider') === constants.AuthProvider.Keycloak) {
|
||||
this.transitionTo('auth.login');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue