2017-03-02 21:35:09 +03:00
|
|
|
import Controller from 'ember-controller';
|
|
|
|
import {readOnly} from 'ember-computed';
|
|
|
|
import injectController from 'ember-controller/inject';
|
|
|
|
|
|
|
|
export default Controller.extend({
|
|
|
|
|
|
|
|
postsController: injectController('posts'),
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
});
|