szurubooru/static/js/controllers/posts_controller.js

26 lines
538 B
JavaScript
Raw Normal View History

'use strict';
class PostsController {
constructor(topNavigationController) {
this.topNavigationController = topNavigationController;
}
uploadPostsRoute() {
this.topNavigationController.activate('upload');
}
listPostsRoute() {
this.topNavigationController.activate('posts');
}
showPostRoute(id) {
this.topNavigationController.activate('posts');
}
editPostRoute(id) {
this.topNavigationController.activate('posts');
}
}
module.exports = PostsController;