ps-toolkit-ui 0.0.130 → 0.0.131

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.
@@ -2635,13 +2635,13 @@
2635
2635
  opt.onClick = function (btn) {
2636
2636
  var e_2, _a;
2637
2637
  if (opt.modal.table) {
2638
- console.log(_this.table.permissions, 'this.table.permissions');
2638
+ console.log(_this.row.Options.filter(function (x) { return x.ParentId === option.Id; }), 'this.row.Options.filter(x => x.ParentId === option.Id)');
2639
2639
  var p = new PermissionClass();
2640
2640
  p.RelatedId = btn.row.Data.Id;
2641
2641
  p.Area = _this.table.permissions.Area;
2642
2642
  p.Controller = _this.table.permissions.Controller;
2643
2643
  p.Action = option.Action;
2644
- p.Accesses = option.Accesses;
2644
+ p.Accesses = _this.row.Options.filter(function (x) { return x.ParentId === option.Id; });
2645
2645
  opt.modal.table.permissions = p;
2646
2646
  if (opt.modal.table.form) {
2647
2647
  opt.modal.table.form.url = p.getUrl() + 'Insert';