cms/app-client/app/router.js
author ymh <ymh.work@gmail.com>
Tue, 11 Oct 2016 02:49:59 +0200
changeset 326 226d5b17a119
parent 271 e234339fe8df
child 338 4a3899b6a7ed
permissions -rw-r--r--
- First implementation of filter for languages. - Language is now an array in the document - various corrections linked to the above change - Simplify the IndexDocumet loop

import Ember from 'ember';
import config from './config/environment';

const Router = Ember.Router.extend({

    location: config.locationType,
    rootURL: config.rootURL,

    player: Ember.inject.service(),

    didTransition:function() {
    	this.get('player').toggleVideoscreen(false);
    	this.get('player').displayMetadata(false);
    	this._super(...arguments);
    }
});

Router.map(function() {
    this.route('tabs/langues', { path: '/' });
    this.route('tabs/langues', { path: '/langues' });
    this.route('tabs/carto', { path: '/cartographie' });
    this.route('tabs/thematiques', { path: '/thematiques' });
    this.route('tabs/discours', { path: '/discours' });
    this.route('tabs/chrono', { path: '/chronologie' });
});

export default Router;