Skip to content

Commit

Permalink
uncomment ngonInit() logic and this store dipatch
Browse files Browse the repository at this point in the history
  • Loading branch information
2cyprian committed Jan 17, 2025
1 parent 4ed6402 commit 62292ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "NODE_OPTIONS=--max_old_space_size=8192 ng serve",
"build": "NODE_OPTIONS=--max_old_space_size=8192 ng build",
"start": "cross-env NODE_OPTIONS=--max_old_space_size=8192 ng serve",
"build": " cross-env NODE_OPTIONS=--max_old_space_size=8192 ng build",
"build:prod": "ng build --aot --configuration production",
"test": "ng test",
"test:headless": "ng test --no-watch --no-progress --browsers=ChromeHeadlessCI",
Expand Down
10 changes: 5 additions & 5 deletions ui/src/app/core/containers/modules/modules.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class ModulesComponent implements OnInit {
constructor(private store: Store<AppState>, private router: Router) {}

ngOnInit() {
/*this.currentLocation$ = this.store.select(getCurrentLocation(false));
this.currentLocation$ = this.store.select(getCurrentLocation(false));
this.store.dispatch(loadRolesDetails());
this.searchModules();

Expand All @@ -61,7 +61,7 @@ export class ModulesComponent implements OnInit {
// NB: Navigation has to be moved to module selector
this.navigateToApp(assignedApps[0].path);
}
});*/
});
}

navigateToApp(path): void {
Expand Down Expand Up @@ -90,9 +90,9 @@ export class ModulesComponent implements OnInit {
/**
* Navigation has been moved to module selector
*/
// this.store.dispatch(
// go({ path: [basePath], extras: { queryParams: formattedParam } })
// );
this.store.dispatch(
go({ path: [basePath], extras: { queryParams: formattedParam } })
);
}
}

Expand Down

0 comments on commit 62292ce

Please sign in to comment.