ps-toolkit-ui 1.16.20 → 1.16.22

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.
@@ -2221,8 +2221,7 @@
2221
2221
  }
2222
2222
  }, 500);
2223
2223
  }, function (m) {
2224
- console.log(m, 'mmmmmmmmmmmmmmmmmm');
2225
- if (m === 'FormBaseErrorAccess' || m === 'FormBaseErrorAccess') {
2224
+ if (m === 'FormBaseErrorAccess' || m === 'FormBaseErrorPermission') {
2226
2225
  _this.permission = false;
2227
2226
  _this.loading = false;
2228
2227
  }
@@ -3337,12 +3336,13 @@
3337
3336
  };
3338
3337
  TableRowComponent.prototype.loadChildren = function (p) {
3339
3338
  var _this = this;
3340
- var data = {
3341
- Page: 1, PerPage: -1,
3342
- Sort: this.table.sortable ? 'Priority' : 'ID',
3343
- SortType: this.table.sortable ? 'Asc' : 'DESC',
3344
- Level: this.level
3345
- };
3339
+ var data = this.table.searchData();
3340
+ // @ts-ignore
3341
+ data['Page'] = 1;
3342
+ // @ts-ignore
3343
+ data['PerPage'] = -1;
3344
+ // @ts-ignore
3345
+ data['Level'] = this.level;
3346
3346
  new RequestClass(this.table.environment, this.table.l).send(this.table.url + ("/" + p), exports.Method.Post, data, this.showChildren, function (result) {
3347
3347
  _this.children = result.List;
3348
3348
  setTimeout(function () {