innoboxrr-vue-datatable 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/DataTable.vue +3 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innoboxrr-vue-datatable",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Datatable para vue3",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/DataTable.vue CHANGED
@@ -296,8 +296,7 @@
296
296
 
297
297
  handler(val, oldVal) {
298
298
 
299
- if(!_.isEqual(val, oldVal))
300
- this.updateFilters();
299
+ if(!_.isEqual(val, oldVal)) this.updateFilters();
301
300
 
302
301
  },
303
302
 
@@ -408,8 +407,7 @@
408
407
 
409
408
  updateFilters() {
410
409
 
411
- // permite las restricciones de consulta estén disponible en el estado global de la aplicación
412
- this.$store.commit('admin/setCrudFilters', this.getFilters());
410
+ this.model.setFilters(this.getFilters());
413
411
 
414
412
  this.fetchData();
415
413
 
@@ -449,19 +447,11 @@
449
447
 
450
448
  this.model[action.callback](action.params).then( res => {
451
449
 
452
- UIkit.notification({
453
- message: res.message,
454
- status: 'success'
455
- });
456
-
457
450
  this.updateFilters();
458
451
 
459
452
  }).catch( error => {
460
453
 
461
- UIkit.notification({
462
- message: error.message,
463
- status: 'danger'
464
- });
454
+ console.error(error);
465
455
 
466
456
  });
467
457