cms/app-client/app/router.js
author Chloe Laisne <chloe.laisne@gmail.com>
Sun, 16 Oct 2016 22:23:31 +0530
changeset 338 4a3899b6a7ed
parent 271 e234339fe8df
child 414 5c6c526a7fc1
permissions -rw-r--r--
Fix notice/transcript display when adding filter from notice, switching from playlist, toolbar, and player

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(this.get('player').get('window'));

    	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;