mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 17:04:59 +03:00
fda94fedab
no issue - https://github.com/ember-cli/eslint-plugin-ember/blob/HEAD/docs/rules/alias-model-in-controller.md - replace `model` with a meaningful property name everywhere possible - refactor `design` and `general` settings controllers to use a directly injected settings service rather than passing it in as a "model" to be more explicit
21 lines
838 B
JavaScript
21 lines
838 B
JavaScript
/* eslint-disable ghost/ember/alias-model-in-controller */
|
|
import Controller, {inject as controller} from '@ember/controller';
|
|
import {readOnly} from '@ember/object/computed';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default Controller.extend({
|
|
|
|
postsController: controller('posts'),
|
|
session: service(),
|
|
|
|
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')
|
|
|
|
});
|