mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 06:25:51 +03:00
d51f2bcf23
closes https://github.com/TryGhost/Admin/pull/2107 - updated related babel dependencies - bumped eslint - ran `yarn lint:js --fix` - added eslint ignore comments for some required non-camel-case properties
46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
import Controller, {inject as controller} from '@ember/controller';
|
|
import classic from 'ember-classic-decorator';
|
|
import {readOnly} from '@ember/object/computed';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
/* eslint-disable ghost/ember/alias-model-in-controller */
|
|
@classic
|
|
export default class PostsLoadingController extends Controller {
|
|
@controller('posts')
|
|
postsController;
|
|
|
|
@service session;
|
|
@service ui;
|
|
@service config;
|
|
|
|
@readOnly('postsController.availableTypes')
|
|
availableTypes;
|
|
|
|
@readOnly('postsController.selectedType')
|
|
selectedType;
|
|
|
|
@readOnly('postsController.selectedVisibility')
|
|
selectedVisibility;
|
|
|
|
@readOnly('postsController.availableVisibilities')
|
|
availableVisibilities;
|
|
|
|
@readOnly('postsController.availableTags')
|
|
availableTags;
|
|
|
|
@readOnly('postsController.selectedTag')
|
|
selectedTag;
|
|
|
|
@readOnly('postsController.availableAuthors')
|
|
availableAuthors;
|
|
|
|
@readOnly('postsController.selectedAuthor')
|
|
selectedAuthor;
|
|
|
|
@readOnly('postsController.availableOrders')
|
|
availableOrders;
|
|
|
|
@readOnly('postsController.selectedOrder')
|
|
selectedOrder;
|
|
}
|