2017-10-30 12:38:01 +03:00
|
|
|
import Controller, {inject as controller} from '@ember/controller';
|
2017-08-22 10:53:26 +03:00
|
|
|
import {readOnly} from '@ember/object/computed';
|
2017-10-30 12:38:01 +03:00
|
|
|
import {inject as service} from '@ember/service';
|
2017-03-02 21:35:09 +03:00
|
|
|
|
2019-02-22 06:17:33 +03:00
|
|
|
/* eslint-disable ghost/ember/alias-model-in-controller */
|
2017-03-02 21:35:09 +03:00
|
|
|
export default Controller.extend({
|
|
|
|
|
2017-10-30 12:38:01 +03:00
|
|
|
postsController: controller('posts'),
|
|
|
|
session: service(),
|
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
|
|
|
|
|
|
|
});
|