Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
switschel committed Oct 9, 2024
2 parents a362156 + 129d31b commit a776089
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions dynamic-mapping-ui/src/shared/navigation.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,24 @@ export class MappingNavigationFactory implements NavigatorNodeFactory {
public router: Router
) {
this.appStateService.currentApplication.subscribe((cur) => {
// console.log('AppName in MappingNavigationFactory', cur, this.router.url);

if (_.has(cur?.manifest, 'isPackage')) {
this.isStandaloneApp = cur?.manifest?.isPackage;
}
this.isStandaloneApp =
_.has(cur?.manifest, 'isPackage') || _.has(cur?.manifest, 'blueprint');
// console.log(
// 'Constructor: AppName in MappingNavigationFactory',
// cur,
// this.isStandaloneApp,
// _.has(cur?.manifest, 'isPackage')
// );
this.appName = cur.name;
});
}

get() {
let navs;
// console.log(
// 'Get: AppName in MappingNavigationFactory',
// this.isStandaloneApp
// );
if (this.isStandaloneApp) {
const parentMapping = new NavigatorNode({
label: gettext('Home'),
Expand Down

0 comments on commit a776089

Please sign in to comment.