Ghost/ghost/admin/app/controllers/posts-loading.js
Gabriel Csapo d51f2bcf23 [chore] migrate to eslint@8 and run --fix (#2256)
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
2022-02-10 10:41:36 +00:00

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