tin-spa 2.1.59 → 2.2.0
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/esm2020/lib/components/table/detailsDialog.component.mjs +4 -2
- package/esm2020/lib/components/table-internal/detailsDialog-internal.component.mjs +4 -2
- package/fesm2015/tin-spa.mjs +6 -2
- package/fesm2015/tin-spa.mjs.map +1 -1
- package/fesm2020/tin-spa.mjs +6 -2
- package/fesm2020/tin-spa.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/tin-spa.mjs
CHANGED
|
@@ -3283,9 +3283,9 @@ class DetailsDialogInternal {
|
|
|
3283
3283
|
this.buttons = buttons;
|
|
3284
3284
|
let resp = DetailsDialogProcessor.handleFormMode(this.detailsConfig, this.formConfig);
|
|
3285
3285
|
if (resp.loadByAction) {
|
|
3286
|
-
this.loadData(resp.action);
|
|
3287
3286
|
this.loadByAction = true;
|
|
3288
3287
|
formConfig.loadAction = resp.action;
|
|
3288
|
+
this.loadData(resp.action);
|
|
3289
3289
|
}
|
|
3290
3290
|
else {
|
|
3291
3291
|
this.details = resp.details;
|
|
@@ -3304,6 +3304,8 @@ class DetailsDialogInternal {
|
|
|
3304
3304
|
loadData(action) {
|
|
3305
3305
|
console.log("loading details");
|
|
3306
3306
|
if (action && this.loadByAction) {
|
|
3307
|
+
console.log("Loading action");
|
|
3308
|
+
console.log(action);
|
|
3307
3309
|
this.dataService.CallApi(action).subscribe((apiResponse) => {
|
|
3308
3310
|
if (apiResponse.success) {
|
|
3309
3311
|
this.details = apiResponse.data;
|
|
@@ -4098,9 +4100,9 @@ class DetailsDialog {
|
|
|
4098
4100
|
this.buttons = buttons;
|
|
4099
4101
|
let resp = DetailsDialogProcessor.handleFormMode(this.detailsConfig, this.formConfig);
|
|
4100
4102
|
if (resp.loadByAction) {
|
|
4101
|
-
this.loadData(resp.action, false);
|
|
4102
4103
|
this.loadByAction = true;
|
|
4103
4104
|
formConfig.loadAction = resp.action;
|
|
4105
|
+
this.loadData(resp.action, false);
|
|
4104
4106
|
}
|
|
4105
4107
|
else {
|
|
4106
4108
|
this.details = resp.details;
|
|
@@ -4125,6 +4127,8 @@ class DetailsDialog {
|
|
|
4125
4127
|
if (apiResponse.success) {
|
|
4126
4128
|
this.details = apiResponse.data;
|
|
4127
4129
|
this.isLoadComplete = true;
|
|
4130
|
+
if (reload)
|
|
4131
|
+
this.tableReload.next(true);
|
|
4128
4132
|
}
|
|
4129
4133
|
else {
|
|
4130
4134
|
this.messageService.toast("Error: " + apiResponse.message);
|