tin-spa 2.1.39 → 2.1.40

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.
@@ -3502,8 +3502,9 @@ class TableInternalComponent {
3502
3502
  }
3503
3503
  //Actions
3504
3504
  loadData(action, data) {
3505
- console.log("loading");
3505
+ console.log("loading table data");
3506
3506
  if (action) {
3507
+ console.log(action.url);
3507
3508
  this.dataService.CallApi(action, data).subscribe((apiResponse) => {
3508
3509
  if (this.config.logResponse) {
3509
3510
  console.log(apiResponse);
@@ -3849,7 +3850,7 @@ class DetailsDialog {
3849
3850
  }
3850
3851
  }
3851
3852
  loadData(action) {
3852
- console.log("loading");
3853
+ console.log("loading details");
3853
3854
  if (action) {
3854
3855
  this.dataService.CallApi(action).subscribe((apiResponse) => {
3855
3856
  if (apiResponse.success) {
@@ -4328,6 +4329,13 @@ class TableComponent {
4328
4329
  columnClicked(column, row) {
4329
4330
  if (column.detailsConfig) {
4330
4331
  column.detailsConfig.details = row;
4332
+ if (column.detailsConfig.tableConfig && column.detailsConfig.tableConfig.loadAction && column.detailsConfig.tableConfig.loadCriteria && column.detailsConfig.tableConfig.loadIDField) {
4333
+ column.detailsConfig.tableConfig.loadAction.url = column.detailsConfig.tableConfig.loadAction.url.split('/')[0] + "/" + column.detailsConfig.tableConfig.loadCriteria + "/" + column.detailsConfig.details[column.detailsConfig.tableConfig.loadIDField]; // fix data to proper source
4334
+ console.log("Transformed");
4335
+ }
4336
+ else {
4337
+ console.log("NOT Transformed");
4338
+ }
4331
4339
  const dialogRef = this.dialog.open(DetailsDialog, {
4332
4340
  width: "900px",
4333
4341
  data: column.detailsConfig