From 24bf46afb1cc9cb8a1b17b27227d6822761e805e Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Fri, 17 Jul 2020 14:48:10 +0200 Subject: [PATCH] FIX #13983 TIME 0:10 fix static mode --- .../template-file-editor-modal.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/app/administration/template/templateFileEditorModal/template-file-editor-modal.component.ts b/src/frontend/app/administration/template/templateFileEditorModal/template-file-editor-modal.component.ts index 03b3c7e96ff..6302aca25b0 100644 --- a/src/frontend/app/administration/template/templateFileEditorModal/template-file-editor-modal.component.ts +++ b/src/frontend/app/administration/template/templateFileEditorModal/template-file-editor-modal.component.ts @@ -18,13 +18,12 @@ export class TemplateFileEditorModalComponent implements OnInit { file: any = null; editorType: any = null; - @ViewChild('onlyofficeViewer', { static: true }) onlyofficeViewer: EcplOnlyofficeViewerComponent; + @ViewChild('onlyofficeViewer', { static: false }) onlyofficeViewer: EcplOnlyofficeViewerComponent; @ViewChild('collaboraOnlineViewer', { static: false }) collaboraOnlineViewer: CollaboraOnlineViewerComponent; constructor(public dialogRef: MatDialogRef<TemplateFileEditorModalComponent>, @Inject(MAT_DIALOG_DATA) public data: any) { } ngOnInit(): void { - console.log(this.data); this.editorOptions = this.data.editorOptions; this.file = this.data.file; this.editorType = this.data.editorType; -- GitLab