diff --git a/projects/editor/src/app/app.component.ts b/projects/editor/src/app/app.component.ts index 9f5b96f15d0a60d8340e5dd9f3904a337f89295d..383dafd30a0559f9564f376193cd0005039a42cf 100644 --- a/projects/editor/src/app/app.component.ts +++ b/projects/editor/src/app/app.component.ts @@ -7,7 +7,7 @@ import { UnitService } from './unit.service'; selector: 'editor-aspect', template: ` <div fxLayout="column" class="mainView"> - <app-toolbar></app-toolbar> + <app-toolbar *ngIf="isStandalone()"></app-toolbar> <app-unit-view fxFlex></app-unit-view> </div> `, @@ -17,6 +17,7 @@ import { UnitService } from './unit.service'; }) export class AppComponent implements OnInit { editorConfig!: Record<string, any>; + isStandalone = (): boolean => window === window.parent; constructor(private unitService: UnitService, private translateService: TranslateService,