Ghost/ghost/admin/app/controllers/posts-loading.js
Kevin Ansfield ef0178cd06 Refactored posts and pages controllers to Octane patterns
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
2022-10-07 18:39:34 +01:00

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