Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit 95143fb

Browse files
fix comments filters
1 parent ff08578 commit 95143fb

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
### Fixed
1212
- Fixed post url in backend view
1313
- Fixed comments count
14+
- Fixed comments filters
1415

1516
## 0.10.1 (January 11, 2016)
1617

app/views/admin/comment-index.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,17 @@ module.exports = {
3030

3131
watch: {
3232

33-
'config.page': 'load',
33+
'config.page': function (page, old) {
34+
if (page == old) {
35+
return;
36+
}
37+
38+
this.load();
39+
},
3440

3541
'config.filter': {
3642
handler: function (filter) {
43+
this.load();
3744
this.$session.set('comments.filter', filter);
3845
},
3946
deep: true

0 commit comments

Comments
 (0)