mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
102eec827c
no issue - ensure content filters in the loading screen have the same styles - add session injection to `posts-loading` controller so that the authors dropdown doesn't appear when changing filters when logged in as an author
21 lines
814 B
JavaScript
21 lines
814 B
JavaScript
import Controller from 'ember-controller';
|
|
import {readOnly} from 'ember-computed';
|
|
import injectController from 'ember-controller/inject';
|
|
import injectService from 'ember-service/inject';
|
|
|
|
export default Controller.extend({
|
|
|
|
postsController: injectController('posts'),
|
|
session: injectService(),
|
|
|
|
availableTypes: readOnly('postsController.availableTypes'),
|
|
selectedType: readOnly('postsController.selectedType'),
|
|
availableTags: readOnly('postsController.availableTags'),
|
|
selectedTag: readOnly('postsController.selectedTag'),
|
|
availableAuthors: readOnly('postsController.availableAuthors'),
|
|
selectedAuthor: readOnly('postsController.selectedAuthor'),
|
|
availableOrders: readOnly('postsController.availableOrders'),
|
|
selectedOrder: readOnly('postsController.selectedOrder')
|
|
|
|
});
|