1
0
Fork 0
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:
McMatts 2018-04-20 14:38:10 +01:00
parent 8fb001422a
commit bde0091a4a
23 changed files with 118 additions and 367 deletions

View file

@ -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');
}