From 95032c6f556b8a032c9839354e7c58f6388fc63a Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Mon, 16 Mar 2020 13:54:03 +0100
Subject: [PATCH] FEAT #12091 TIME 0:15 fix validate button in indexation

---
 src/frontend/app/indexation/indexation.component.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontend/app/indexation/indexation.component.html b/src/frontend/app/indexation/indexation.component.html
index cdd283b3e0a..24969431026 100644
--- a/src/frontend/app/indexation/indexation.component.html
+++ b/src/frontend/app/indexation/indexation.component.html
@@ -89,7 +89,7 @@
                         </ng-container>
                     </mat-menu>
                     <button mat-button *ngIf="!appService.getViewMode()"
-                        [disabled]="actionService.loading || selectedAction.id === 0 || (appDocumentViewer.isEditingTemplate() && appDocumentViewer.editor.async)"
+                        [disabled]="actionService.loading || selectedAction.id === 0 || (appDocumentViewer !== undefined && !appDocumentViewer.isEditorLoaded())"
                         class="button-form-primary-filled"
                         style="width: 150px;align-items: center;justify-content: center;text-align: center;display: flex;"
                         (click)="onSubmit()">{{lang.validate}}</button>
-- 
GitLab