Skip to content

Commit

Permalink
Update navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Oct 9, 2024
1 parent 7ab3824 commit 129d31b
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 129d31b

Please sign in to comment.