mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/js: format code to ESLint
This commit is contained in:
@ -34,7 +34,9 @@ class CommentsController {
|
||||
requestPage: (offset, limit) => {
|
||||
return PostList.search(
|
||||
'sort:comment-date comment-count-min:1',
|
||||
offset, limit, fields);
|
||||
offset,
|
||||
limit,
|
||||
fields);
|
||||
},
|
||||
pageRenderer: pageCtx => {
|
||||
Object.assign(pageCtx, {
|
||||
@ -68,9 +70,10 @@ class CommentsController {
|
||||
e.detail.comment.delete()
|
||||
.catch(error => window.alert(error.message));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = router => {
|
||||
router.enter(['comments'],
|
||||
(ctx, next) => { new CommentsController(ctx); });
|
||||
};
|
||||
router.enter(['comments'], (ctx, next) => {
|
||||
new CommentsController(ctx);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user