@esfaenza/core 15.2.285 → 15.2.287

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.
@@ -1333,20 +1333,22 @@ class EmbeddingComponent extends BaseComponent {
1333
1333
  this.Localhost = this.LocalhostModuleMap[this.Module];
1334
1334
  this.gatherRouteInformations(route);
1335
1335
  console.log(`Recognized a new navigation to the embedding component: ${this.Module} - ${this.CompletePath}`);
1336
- if (this.Page && this.emb.IsReloadAllowed()) {
1336
+ let reloadAllowed = this.emb.IsReloadAllowed();
1337
+ if (this.Page && reloadAllowed) {
1337
1338
  this.Page = this.Pars = null;
1338
1339
  requestAnimationFrame(() => { this.assignPageLoadParameters(); });
1339
1340
  }
1340
1341
  else
1341
- this.assignPageLoadParameters();
1342
+ this.assignPageLoadParameters(reloadAllowed);
1342
1343
  });
1343
1344
  }
1344
- assignPageLoadParameters() {
1345
+ assignPageLoadParameters(reloadAllowed = true) {
1345
1346
  // Esempio di Complete path: "/pages/embed/crm/leads/leads_search"
1346
1347
  // Esempio di slices: ["", "pages", "embed", "crm", "leads", "leads_search"]
1347
1348
  // Io devo sostanzialmente prendere dal nome del modulo ("crm") in poi. Nome del modulo embeddato eslcuso
1348
1349
  console.log("Embedding...");
1349
- this.EmbeddingSuccesfull = false;
1350
+ if (reloadAllowed)
1351
+ this.EmbeddingSuccesfull = false;
1350
1352
  // Per seccare e ricreare il componente che altrimenti non prenderebbe gli input nuovi
1351
1353
  requestAnimationFrame(() => {
1352
1354
  var _a;