diff options
Diffstat (limited to 'client/js/controllers/post_list_controller.js')
| -rw-r--r-- | client/js/controllers/post_list_controller.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/client/js/controllers/post_list_controller.js b/client/js/controllers/post_list_controller.js index fd1adfe..d783607 100644 --- a/client/js/controllers/post_list_controller.js +++ b/client/js/controllers/post_list_controller.js @@ -13,7 +13,8 @@ const EmptyView = require('../views/empty_view.js'); const fields = [ 'id', 'thumbnailUrl', 'type', 'safety', - 'score', 'favoriteCount', 'commentCount', 'tags', 'version']; + 'score', 'favoriteCount', 'commentCount', 'tags', 'version' +]; class PostListController { constructor(ctx) { @@ -62,8 +63,7 @@ class PostListController { _evtTag(e) { Promise.all( - this._bulkEditTags.map(tag => - e.detail.post.tags.addByName(tag))) + this._bulkEditTags.map(tag => e.detail.post.tags.addByName(tag))) .then(e.detail.post.save()) .catch(error => window.alert(error.message)); } @@ -117,5 +117,7 @@ class PostListController { module.exports = router => { router.enter( ['posts'], - (ctx, next) => { ctx.controller = new PostListController(ctx); }); + (ctx, next) => { + ctx.controller = new PostListController(ctx); + }); }; |