Skip to content
Snippets Groups Projects
Commit fde786b5 authored by rhenck's avatar rhenck
Browse files

[editor] Hide unit toolbar when not in standalone mode

This stuff is managed via the host (teststudio) and not by the editor 
itself.
parent b71d929b
No related branches found
Tags 1.0.0
No related merge requests found
...@@ -7,7 +7,7 @@ import { UnitService } from './unit.service'; ...@@ -7,7 +7,7 @@ import { UnitService } from './unit.service';
selector: 'editor-aspect', selector: 'editor-aspect',
template: ` template: `
<div fxLayout="column" class="mainView"> <div fxLayout="column" class="mainView">
<app-toolbar></app-toolbar> <app-toolbar *ngIf="isStandalone()"></app-toolbar>
<app-unit-view fxFlex></app-unit-view> <app-unit-view fxFlex></app-unit-view>
</div> </div>
`, `,
...@@ -17,6 +17,7 @@ import { UnitService } from './unit.service'; ...@@ -17,6 +17,7 @@ import { UnitService } from './unit.service';
}) })
export class AppComponent implements OnInit { export class AppComponent implements OnInit {
editorConfig!: Record<string, any>; editorConfig!: Record<string, any>;
isStandalone = (): boolean => window === window.parent;
constructor(private unitService: UnitService, constructor(private unitService: UnitService,
private translateService: TranslateService, private translateService: TranslateService,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment