1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-04 13: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

@ -13,7 +13,6 @@ import $ from 'jquery';
import { Promise as EmberPromise } from 'rsvp';
import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';
import constants from '../../../utils/constants';
export default Route.extend({
appMeta: service(),
@ -23,6 +22,8 @@ export default Route.extend({
beforeModel(transition) {
return new EmberPromise((resolve) => {
let constants = this.get('constants');
let authProvider = this.get('appMeta.authProvider');
switch (authProvider) {