2017-10-30 12:38:01 +03:00
|
|
|
import Controller, {inject as controller} from '@ember/controller';
|
2022-11-03 14:14:36 +03:00
|
|
|
import {inject} from 'ghost-admin/decorators/inject';
|
2017-10-30 12:38:01 +03:00
|
|
|
import {inject as service} from '@ember/service';
|
2022-11-03 14:14:36 +03:00
|
|
|
|
2022-02-01 12:34:03 +03:00
|
|
|
export default class PostsLoadingController extends Controller {
|
2022-10-07 20:39:34 +03:00
|
|
|
@controller('posts') postsController;
|
2022-02-01 12:34:03 +03:00
|
|
|
|
2022-02-01 20:03:45 +03:00
|
|
|
@service session;
|
|
|
|
@service ui;
|
2022-11-03 14:14:36 +03:00
|
|
|
|
|
|
|
@inject config;
|
2022-02-01 20:59:20 +03:00
|
|
|
|
2022-10-07 20:39:34 +03:00
|
|
|
get availableTypes() {
|
|
|
|
return this.postsController.availableTypes;
|
|
|
|
}
|
2022-02-01 12:34:03 +03:00
|
|
|
|
2022-10-07 20:39:34 +03:00
|
|
|
get selectedType() {
|
|
|
|
return this.postsController.selectedType;
|
|
|
|
}
|
2022-02-01 12:34:03 +03:00
|
|
|
|
2022-10-07 20:39:34 +03:00
|
|
|
get selectedVisibility() {
|
|
|
|
return this.postsController.selectedVisibility;
|
|
|
|
}
|
2022-02-01 12:34:03 +03:00
|
|
|
|
2022-10-07 20:39:34 +03:00
|
|
|
get availableVisibilities() {
|
|
|
|
return this.postsController.availableVisibilities;
|
|
|
|
}
|
2022-02-01 12:34:03 +03:00
|
|
|
|
2022-10-07 20:39:34 +03:00
|
|
|
get availableTags() {
|
|
|
|
return this.postsController.availableTags;
|
|
|
|
}
|
2022-02-01 12:34:03 +03:00
|
|
|
|
2022-10-07 20:39:34 +03:00
|
|
|
get selectedTag() {
|
|
|
|
return this.postsController.selectedTag;
|
|
|
|
}
|
2022-02-01 12:34:03 +03:00
|
|
|
|
2022-10-07 20:39:34 +03:00
|
|
|
get availableAuthors() {
|
|
|
|
return this.postsController.availableAuthors;
|
|
|
|
}
|
2022-02-01 12:34:03 +03:00
|
|
|
|
2022-10-07 20:39:34 +03:00
|
|
|
get selectedAuthor() {
|
|
|
|
return this.postsController.selectedAuthor;
|
|
|
|
}
|
2022-02-01 12:34:03 +03:00
|
|
|
|
2022-10-07 20:39:34 +03:00
|
|
|
get availableOrders() {
|
|
|
|
return this.postsController.availableOrders;
|
|
|
|
}
|
2022-02-01 12:34:03 +03:00
|
|
|
|
2022-10-07 20:39:34 +03:00
|
|
|
get selectedOrder() {
|
|
|
|
return this.postsController.selectedOrder;
|
|
|
|
}
|
2022-02-01 12:34:03 +03:00
|
|
|
}
|