ps-toolkit-ui 1.22.8 → 1.22.10
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 +11 -9
- 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 +8 -6
- package/fesm2015/ps-toolkit-ui.js +7 -5
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -4246,7 +4246,6 @@
|
|
|
4246
4246
|
if (this.table.hasChildren || this.subTable != null) {
|
|
4247
4247
|
this.showChildren = new InputClass(this.table.environment, this.table.l, this.table.name + 'SubsetTitle', 'fad fa-angle-left f-s-22', this.row.Data.CountChild > 0 || (!this.table.childrenAutoLoad && this.children.length > 0) || this.subTable != null ? exports.InputType.Icon : exports.InputType.Hidden, 'h-25 m-h-5 d-ib va-m f-u');
|
|
4248
4248
|
this.showChildren.onClick = function () {
|
|
4249
|
-
var _a, _b, _c, _d;
|
|
4250
4249
|
if ($(_this.childrenDiv.nativeElement).is(':visible')) {
|
|
4251
4250
|
$(_this.childrenDiv.nativeElement).slideUp();
|
|
4252
4251
|
_this.showChildren.icon = 'fad fa-angle-left f-s-22';
|
|
@@ -4255,17 +4254,20 @@
|
|
|
4255
4254
|
_this.loadChildren(_this.row.Data.Id);
|
|
4256
4255
|
}
|
|
4257
4256
|
else if (_this.subTable != null && _this.subTable.permissions == null) {
|
|
4258
|
-
var
|
|
4257
|
+
var acc = _this.table.permissions.Accesses.find(function (x) { return x.Action === _this.subTable.name; });
|
|
4258
|
+
console.log(_this.table.permissions.Accesses);
|
|
4259
|
+
console.log(_this.subTable.name);
|
|
4260
|
+
console.log(acc);
|
|
4259
4261
|
var ps = new PermissionClass();
|
|
4260
4262
|
ps.RelatedId = _this.row.Data.Id;
|
|
4261
|
-
ps.Area =
|
|
4262
|
-
ps.Controller =
|
|
4263
|
-
ps.Action =
|
|
4264
|
-
console.log(
|
|
4265
|
-
console.log(
|
|
4266
|
-
ps.Accesses =
|
|
4263
|
+
ps.Area = acc.Area;
|
|
4264
|
+
ps.Controller = acc.Controller;
|
|
4265
|
+
ps.Action = acc.Action;
|
|
4266
|
+
console.log(acc.Id);
|
|
4267
|
+
console.log(acc.Accesses);
|
|
4268
|
+
ps.Accesses = acc.Accesses;
|
|
4267
4269
|
_this.subTable.permissions = ps;
|
|
4268
|
-
console.log(
|
|
4270
|
+
console.log(ps);
|
|
4269
4271
|
_this.subTable.set();
|
|
4270
4272
|
$(_this.childrenDiv.nativeElement).slideDown();
|
|
4271
4273
|
_this.showChildren.icon = 'fad fa-angle-down f-s-22';
|