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

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
malte-christian committed Mar 1, 2016
2 parents 9907f8e + 95143fb commit 221b524
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
### Fixed
- Fixed post url in backend view
- Fixed comments count
- Fixed comments filters

## 0.10.1 (January 11, 2016)

Expand Down
11 changes: 9 additions & 2 deletions app/views/admin/comment-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
return _.merge({
posts: [],
config: {
filter: this.$session.get('comments.filter') || {}
filter: this.$session.get('comments.filter', {})
},
comments: false,
pages: 0,
Expand All @@ -30,10 +30,17 @@ module.exports = {

watch: {

'config.page': 'load',
'config.page': function (page, old) {
if (page == old) {
return;
}

this.load();
},

'config.filter': {
handler: function (filter) {
this.load();
this.$session.set('comments.filter', filter);
},
deep: true
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/post-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
return _.merge({
posts: false,
config: {
filter: this.$session.get('posts.filter') || {order: 'date desc', limit:25}
filter: this.$session.get('posts.filter', {order: 'date desc', limit:25})
},
pages: 0,
count: '',
Expand Down

0 comments on commit 221b524

Please sign in to comment.