mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 14:22:07 +03:00
ef0178cd06
refs https://github.com/TryGhost/Ghost/issues/14101 - migrated to full native class syntax - removed loading of snippets as they are not needed on post lists (they are needed on the editor screen which does it's own loading) - removed `access` query param definition leftover from earlier development - removed use of `{{action}}` in associated templates
50 lines
1.1 KiB
JavaScript
50 lines
1.1 KiB
JavaScript
import Controller, {inject as controller} from '@ember/controller';
|
|
import {inject as service} from '@ember/service';
|
|
export default class PostsLoadingController extends Controller {
|
|
@controller('posts') postsController;
|
|
|
|
@service session;
|
|
@service ui;
|
|
@service config;
|
|
|
|
get availableTypes() {
|
|
return this.postsController.availableTypes;
|
|
}
|
|
|
|
get selectedType() {
|
|
return this.postsController.selectedType;
|
|
}
|
|
|
|
get selectedVisibility() {
|
|
return this.postsController.selectedVisibility;
|
|
}
|
|
|
|
get availableVisibilities() {
|
|
return this.postsController.availableVisibilities;
|
|
}
|
|
|
|
get availableTags() {
|
|
return this.postsController.availableTags;
|
|
}
|
|
|
|
get selectedTag() {
|
|
return this.postsController.selectedTag;
|
|
}
|
|
|
|
get availableAuthors() {
|
|
return this.postsController.availableAuthors;
|
|
}
|
|
|
|
get selectedAuthor() {
|
|
return this.postsController.selectedAuthor;
|
|
}
|
|
|
|
get availableOrders() {
|
|
return this.postsController.availableOrders;
|
|
}
|
|
|
|
get selectedOrder() {
|
|
return this.postsController.selectedOrder;
|
|
}
|
|
}
|