1 import Ember from 'ember'; |
1 import Ember from 'ember'; |
2 import config from './config/environment'; |
2 import config from './config/environment'; |
3 |
3 |
4 const Router = Ember.Router.extend({ |
4 const Router = Ember.Router.extend({ |
|
5 |
5 location: config.locationType, |
6 location: config.locationType, |
6 rootURL: config.rootURL |
7 rootURL: config.rootURL, |
|
8 |
|
9 player: Ember.inject.service(), |
|
10 |
|
11 didTransition:function() { |
|
12 this.get('player').toggleVideoscreen(false); |
|
13 this.get('player').displayMetadata(false); |
|
14 this._super(...arguments); |
|
15 } |
7 }); |
16 }); |
8 |
17 |
9 Router.map(function() { |
18 Router.map(function() { |
10 this.route('tabs/langues', { path: '/' }); // Default |
19 this.route('tabs/langues', { path: '/' }); |
11 this.route('tabs/langues', { path: '/langues' }); |
20 this.route('tabs/langues', { path: '/langues' }); |
12 this.route('tabs/carto', { path: '/cartographie' }); |
21 this.route('tabs/carto', { path: '/cartographie' }); |
13 this.route('tabs/thematiques', { path: '/thematiques' }); |
22 this.route('tabs/thematiques', { path: '/thematiques' }); |
14 this.route('tabs/discours', { path: '/discours' }); |
23 this.route('tabs/discours', { path: '/discours' }); |
15 this.route('tabs/chrono', { path: '/chronologie' }); |
24 this.route('tabs/chrono', { path: '/chronologie' }); |