2017-10-30 12:38:01 +03:00
|
|
|
import Controller, {inject as controller} from '@ember/controller';
|
2022-02-01 12:34:03 +03:00
|
|
|
import classic from 'ember-classic-decorator';
|
2017-08-22 10:53:26 +03:00
|
|
|
import {readOnly} from '@ember/object/computed';
|
2017-10-30 12:38:01 +03:00
|
|
|
import {inject as service} from '@ember/service';
|
2017-03-02 21:35:09 +03:00
|
|
|
|
2019-02-22 06:17:33 +03:00
|
|
|
/* eslint-disable ghost/ember/alias-model-in-controller */
|
2022-02-01 12:34:03 +03:00
|
|
|
@classic
|
|
|
|
export default class PostsLoadingController extends Controller {
|
|
|
|
@controller('posts')
|
|
|
|
postsController;
|
|
|
|
|
2022-02-01 20:03:45 +03:00
|
|
|
@service session;
|
|
|
|
@service ui;
|
2022-02-03 22:04:43 +03:00
|
|
|
@service config;
|
2022-02-01 20:59:20 +03:00
|
|
|
|
2022-02-01 12:34:03 +03:00
|
|
|
@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;
|
|
|
|
}
|