Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Commit

Permalink
fire pagination event on vuex
Browse files Browse the repository at this point in the history
  • Loading branch information
matfish2 committed Mar 28, 2020
1 parent 2307acc commit 7f6bb54
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions compiled/state/vuex.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function _default(source) {
});
},
setPage: function setPage(page) {
this.dispatch('pagination', page);
this.commit("PAGINATE", page);
}
}
Expand Down
1 change: 1 addition & 0 deletions lib/state/vuex.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export default function (source) {
this.commit('SORT', {column, ascending});
},
setPage: function (page) {
this.dispatch('pagination', page);
this.commit(`PAGINATE`, page);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-tables-2",
"description": "Vue.js 2 grid components",
"version": "2.0.13",
"version": "2.0.14",
"keywords": [
"vue2",
"vuex",
Expand Down

0 comments on commit 7f6bb54

Please sign in to comment.