mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
758f5285fb
no issue - adds `visibility` query param to posts and pages controllers/routes that is tied to the `filter` query param used in API requests - adds dropdown for selecting post/page visibility to `<GhContentFilter>`
23 lines
1006 B
JavaScript
23 lines
1006 B
JavaScript
import Controller, {inject as controller} from '@ember/controller';
|
|
import {readOnly} from '@ember/object/computed';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
/* eslint-disable ghost/ember/alias-model-in-controller */
|
|
export default Controller.extend({
|
|
|
|
postsController: controller('posts'),
|
|
session: service(),
|
|
ui: service(),
|
|
|
|
availableTypes: readOnly('postsController.availableTypes'),
|
|
selectedType: readOnly('postsController.selectedType'),
|
|
selectedVisibility: readOnly('postsController.selectedVisibility'),
|
|
availableVisibilities: readOnly('postsController.availableVisibilities'),
|
|
availableTags: readOnly('postsController.availableTags'),
|
|
selectedTag: readOnly('postsController.selectedTag'),
|
|
availableAuthors: readOnly('postsController.availableAuthors'),
|
|
selectedAuthor: readOnly('postsController.selectedAuthor'),
|
|
availableOrders: readOnly('postsController.availableOrders'),
|
|
selectedOrder: readOnly('postsController.selectedOrder')
|
|
});
|