@esfaenza/core 15.2.126 → 15.2.128

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.
@@ -1068,12 +1068,17 @@ class EmbeddingComponent extends BaseComponent {
1068
1068
  constructor(injector) {
1069
1069
  super(injector);
1070
1070
  this.injector = injector;
1071
+ // TODO: Automatizzare
1072
+ this.LocalhostModuleMap = {
1073
+ "crm": "31813"
1074
+ };
1071
1075
  this.EmbeddingSuccesfull = true;
1072
1076
  }
1073
1077
  ngOnInit() {
1078
+ debugger;
1074
1079
  let route = this.injector.get(ActivatedRoute);
1075
- this.Module = route.snapshot.data["Module"];
1076
- this.Localhost = route.snapshot.data["Localhost"];
1080
+ this.Module = route.snapshot.params["module"];
1081
+ this.Localhost = this.LocalhostModuleMap[this.Module];
1077
1082
  route.url.subscribe((_) => {
1078
1083
  this.gatherRouteInformations(route);
1079
1084
  if (this.Page) {