From fde786b5860240267ea436de2240cc219392d3d3 Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Tue, 17 Aug 2021 18:11:35 +0200
Subject: [PATCH] [editor] Hide unit toolbar when not in standalone mode

This stuff is managed via the host (teststudio) and not by the editor
itself.
---
 projects/editor/src/app/app.component.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/projects/editor/src/app/app.component.ts b/projects/editor/src/app/app.component.ts
index 9f5b96f15..383dafd30 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,
-- 
GitLab