ps-toolkit-ui 1.4.40 → 1.4.41
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.
- package/bundles/ps-toolkit-ui.umd.js +3 -4
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/table/row/table.row.component.js +4 -5
- package/fesm2015/ps-toolkit-ui.js +3 -4
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2707,16 +2707,15 @@
|
|
|
2707
2707
|
if (opt.modal.accordion) {
|
|
2708
2708
|
var _loop_3 = function (r) {
|
|
2709
2709
|
if (r.table) {
|
|
2710
|
+
var options = HelperClass.clone(_this.row.Options);
|
|
2711
|
+
console.log(options);
|
|
2710
2712
|
var p = new PermissionClass();
|
|
2711
2713
|
p.RelatedId = _this.row.Data.Id;
|
|
2712
2714
|
p.Area = _this.table.permissions.Area;
|
|
2713
2715
|
p.Controller = option.Controller;
|
|
2714
2716
|
p.Action = r.name;
|
|
2715
|
-
|
|
2716
|
-
p.Accesses = HelperClass.clone(_this.row.Options.filter(function (x) { return x.ParentId === option.Id; }));
|
|
2717
|
-
console.log(p.Accesses);
|
|
2717
|
+
p.Accesses = options.filter(function (x) { return x.ParentId === option.Id; });
|
|
2718
2718
|
p.Accesses.forEach(function (x) { return x.Url = x.Url.replace('{action}', r.name.toLowerCase()); });
|
|
2719
|
-
console.log(p.Accesses);
|
|
2720
2719
|
r.table.permissions = p;
|
|
2721
2720
|
if (r.table.form) {
|
|
2722
2721
|
r.table.form.url = option.Url + 'insert';
|