From 02869fcbbd9252d18920b97acb55e3a213d7395c Mon Sep 17 00:00:00 2001 From: Guillaume Heurtier <guillaume.heurtier@maarch.org> Date: Thu, 5 Mar 2020 17:17:38 +0100 Subject: [PATCH] FEAT #12091 TIME 0:45 fix disabled button when creating new version of attachment --- src/frontend/app/viewer/document-viewer.component.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/frontend/app/viewer/document-viewer.component.ts b/src/frontend/app/viewer/document-viewer.component.ts index 4c73a047e41..8ab0636cc57 100644 --- a/src/frontend/app/viewer/document-viewer.component.ts +++ b/src/frontend/app/viewer/document-viewer.component.ts @@ -765,11 +765,7 @@ export class DocumentViewerComponent implements OnInit { isEditingTemplate() { if (this.editor.mode === 'onlyoffice') { - if (this.onlyofficeViewer !== undefined) { - return true; - } else { - return false; - } + return this.onlyofficeViewer === undefined; } else { return this.editInProgress; } -- GitLab