2017-03-02 21:35:09 +03:00
|
|
|
import Controller from 'ember-controller';
|
|
|
|
import injectController from 'ember-controller/inject';
|
2017-04-13 14:22:43 +03:00
|
|
|
import injectService from 'ember-service/inject';
|
2017-05-29 21:50:03 +03:00
|
|
|
import {readOnly} from 'ember-computed';
|
2017-03-02 21:35:09 +03:00
|
|
|
|
|
|
|
export default Controller.extend({
|
|
|
|
|
|
|
|
postsController: injectController('posts'),
|
2017-04-13 14:22:43 +03:00
|
|
|
session: injectService(),
|
2017-03-02 21:35:09 +03:00
|
|
|
|
|
|
|
availableTypes: readOnly('postsController.availableTypes'),
|
|
|
|
selectedType: readOnly('postsController.selectedType'),
|
|
|
|
availableTags: readOnly('postsController.availableTags'),
|
|
|
|
selectedTag: readOnly('postsController.selectedTag'),
|
|
|
|
availableAuthors: readOnly('postsController.availableAuthors'),
|
2017-03-07 20:36:28 +03:00
|
|
|
selectedAuthor: readOnly('postsController.selectedAuthor'),
|
|
|
|
availableOrders: readOnly('postsController.availableOrders'),
|
|
|
|
selectedOrder: readOnly('postsController.selectedOrder')
|
2017-03-02 21:35:09 +03:00
|
|
|
|
|
|
|
});
|