@lowcodeunit/applications-flow-common 1.36.121-krakyn-zoom → 1.36.123-integration

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.
@@ -506,6 +506,25 @@ class ProjectService {
506
506
  this.CreatingProject =
507
507
  Object.keys(state?.EaC?.Projects || {}).length <= 0;
508
508
  resolve(state.EaC);
509
+ this.activatedRoute.queryParams.subscribe((params) => {
510
+ if (params?.direct == 'true') {
511
+ let projKeys = Object.keys(state.EaC.Projects || {});
512
+ if (projKeys.length == 1) {
513
+ let appKeys = Object.keys(state.EaC.Applications || {});
514
+ if (appKeys.length == 1) {
515
+ let app = state.EaC.Applications[appKeys[0]];
516
+ let routeKey = encodeURIComponent(app.LookupConfig.PathRegex?.replace('.*', '') || '/');
517
+ window.location.href = `/dashboard/application/${appKeys[0]}/${routeKey}/${projKeys[0]}`;
518
+ }
519
+ else {
520
+ window.location.href = `/dashboard/project/${projKeys[0]}`;
521
+ }
522
+ }
523
+ else {
524
+ window.location.href = `/dashboard`;
525
+ }
526
+ }
527
+ });
509
528
  console.log(state);
510
529
  }, (err) => {
511
530
  state.Loading = false;