ps-toolkit-ui 1.4.17 → 1.4.20
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 +4 -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/classes/table.class.js +3 -3
- package/esm2015/lib/components/table/row/table.row.component.js +3 -3
- package/fesm2015/ps-toolkit-ui.js +4 -4
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2684,8 +2684,8 @@
|
|
|
2684
2684
|
p.Accesses = _this.row.Options.filter(function (x) { return x.ParentId === option.Id; });
|
|
2685
2685
|
opt.modal.table.permissions = p;
|
|
2686
2686
|
if (opt.modal.table.form) {
|
|
2687
|
-
opt.modal.table.form.url = option.Url + '-insert';
|
|
2688
|
-
opt.modal.table.form.baseUrl = option.Url + '-insert';
|
|
2687
|
+
opt.modal.table.form.url = option.Url.replace('{}', _this.row.Data.Id) + '-insert';
|
|
2688
|
+
opt.modal.table.form.baseUrl = option.Url.replace('{}', _this.row.Data.Id) + '-insert';
|
|
2689
2689
|
}
|
|
2690
2690
|
opt.modal.table.set();
|
|
2691
2691
|
}
|
|
@@ -7451,7 +7451,7 @@
|
|
|
7451
7451
|
var listAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.List);
|
|
7452
7452
|
if (listAccess !== null) {
|
|
7453
7453
|
this.title = listAccess.Name;
|
|
7454
|
-
this.url = listAccess.Url;
|
|
7454
|
+
this.url = listAccess.Url.replace('{}', this.permissions.RelatedId);
|
|
7455
7455
|
if (this.permissions.Type !== exports.PermissionTypeEnum.Form) {
|
|
7456
7456
|
this.load();
|
|
7457
7457
|
}
|
|
@@ -7472,7 +7472,7 @@
|
|
|
7472
7472
|
if (access.AccessType === exports.PermissionAccessTypeEnum.Insert) {
|
|
7473
7473
|
accessInp.class = accessInp.class.replace('blue', 'green');
|
|
7474
7474
|
if (this_1.form) {
|
|
7475
|
-
this_1.form.url = this_1.form.baseUrl = access.Url;
|
|
7475
|
+
this_1.form.url = this_1.form.baseUrl = access.Url.replace('{}', this_1.permissions.RelatedId);
|
|
7476
7476
|
if (!this_1.form.onTop) {
|
|
7477
7477
|
accessInp.onClick = function () {
|
|
7478
7478
|
_this.form.onSuccessBase = function () {
|