author | ymh <ymh.work@gmail.com> |
Fri, 16 Dec 2016 17:43:07 +0100 | |
changeset 474 | 245b4df137d3 |
parent 465 | 9df336529b2f |
permissions | -rw-r--r-- |
175
7a7cfcba5bfe
Add Discourses Component files
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
1 |
import Ember from 'ember'; |
7a7cfcba5bfe
Add Discourses Component files
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
2 |
|
7a7cfcba5bfe
Add Discourses Component files
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
3 |
export default Ember.Route.extend({ |
338
4a3899b6a7ed
Fix notice/transcript display when adding filter from notice, switching from playlist, toolbar, and player
Chloe Laisne <chloe.laisne@gmail.com>
parents:
198
diff
changeset
|
4 |
|
394
48458e099b05
make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents:
338
diff
changeset
|
5 |
player: Ember.inject.service(), |
465
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
394
diff
changeset
|
6 |
filter: Ember.inject.service(), |
394
48458e099b05
make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents:
338
diff
changeset
|
7 |
|
465
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
394
diff
changeset
|
8 |
model() { |
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
394
diff
changeset
|
9 |
return this.get('store').query('discourse', this.get('filter').get('queryParamsValues')); |
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
394
diff
changeset
|
10 |
}, |
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
394
diff
changeset
|
11 |
|
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
394
diff
changeset
|
12 |
activate() { |
338
4a3899b6a7ed
Fix notice/transcript display when adding filter from notice, switching from playlist, toolbar, and player
Chloe Laisne <chloe.laisne@gmail.com>
parents:
198
diff
changeset
|
13 |
this.get('player').set('window', false); |
4a3899b6a7ed
Fix notice/transcript display when adding filter from notice, switching from playlist, toolbar, and player
Chloe Laisne <chloe.laisne@gmail.com>
parents:
198
diff
changeset
|
14 |
} |
4a3899b6a7ed
Fix notice/transcript display when adding filter from notice, switching from playlist, toolbar, and player
Chloe Laisne <chloe.laisne@gmail.com>
parents:
198
diff
changeset
|
15 |
|
394
48458e099b05
make dynamic filters for all route and do some code pruning and cleaning
ymh <ymh.work@gmail.com>
parents:
338
diff
changeset
|
16 |
}); |