From 7f6bb543862f049c7c1d6cab3b7321bd3b80224d Mon Sep 17 00:00:00 2001 From: Matanya Fishaimer Date: Sat, 28 Mar 2020 11:43:26 +0300 Subject: [PATCH] fire pagination event on vuex --- compiled/state/vuex.js | 1 + lib/state/vuex.js | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/compiled/state/vuex.js b/compiled/state/vuex.js index 8366c3a5..0588fda8 100644 --- a/compiled/state/vuex.js +++ b/compiled/state/vuex.js @@ -92,6 +92,7 @@ function _default(source) { }); }, setPage: function setPage(page) { + this.dispatch('pagination', page); this.commit("PAGINATE", page); } } diff --git a/lib/state/vuex.js b/lib/state/vuex.js index 0bad816e..c8bce3df 100644 --- a/lib/state/vuex.js +++ b/lib/state/vuex.js @@ -78,6 +78,7 @@ export default function (source) { this.commit('SORT', {column, ascending}); }, setPage: function (page) { + this.dispatch('pagination', page); this.commit(`PAGINATE`, page); } diff --git a/package.json b/package.json index b6ee451e..8d8b1451 100644 --- a/package.json +++ b/package.json @@ -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",