ps-toolkit-ui 1.4.19 → 1.4.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.
- package/bundles/ps-toolkit-ui.umd.js +3 -3
- 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 +2 -2
- package/esm2015/lib/components/table/row/table.row.component.js +3 -3
- package/fesm2015/ps-toolkit-ui.js +3 -3
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2612,7 +2612,7 @@
|
|
|
2612
2612
|
if (option.AccessType === exports.PermissionAccessTypeEnum.Update) {
|
|
2613
2613
|
if (this_2.table.form) {
|
|
2614
2614
|
opt.onClick = function () {
|
|
2615
|
-
_this.table.form.url = option.Url.replace('{}', _this.row.Data.Id);
|
|
2615
|
+
_this.table.form.url = option.Url.replace('{}', _this.table.permissions.RelatedId).replace('{}', _this.row.Data.Id);
|
|
2616
2616
|
if (_this.table.hasChildren && _this.row.Data.ParentId != null) {
|
|
2617
2617
|
_this.table.form.onSuccessBase = function () {
|
|
2618
2618
|
_this.table.modal.hide();
|
|
@@ -2868,7 +2868,7 @@
|
|
|
2868
2868
|
this.table.form.inputs.filter(function (x) { return !x.inEditVisible; }).forEach(function (x) { return x.visible = false; });
|
|
2869
2869
|
}
|
|
2870
2870
|
else {
|
|
2871
|
-
new RequestClass(this.table.environment, this.table.l).send(option.Url.replace('update', 'get').replace('{}', this.row.Data.Id), exports.Method.Post, null, opt, function (result) {
|
|
2871
|
+
new RequestClass(this.table.environment, this.table.l).send(option.Url.replace('{}', this.table.permissions.RelatedId).replace('update', 'get').replace('{}', this.row.Data.Id), exports.Method.Post, null, opt, function (result) {
|
|
2872
2872
|
_this.table.form.name = opt.name;
|
|
2873
2873
|
_this.table.form.setButtons(_this.table.form.onTop, true, _this.row.Data.Id);
|
|
2874
2874
|
_this.table.form.setData(result);
|
|
@@ -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 () {
|