Ghost/ghost/admin/app/controllers/posts-loading.js
Kevin Ansfield 102eec827c 🐛 fix content filters jumping when loading screen is shown
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
2017-04-13 12:26:04 +01:00

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')
});