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:
parent
8fb001422a
commit
bde0091a4a
23 changed files with 118 additions and 367 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue