From fdba38a3c661fa35af0ba88ee75a533a2c03c250 Mon Sep 17 00:00:00 2001
From: Hamza HRAMCHI <hamza.hramchi@xelians.fr>
Date: Thu, 4 Nov 2021 16:20:01 +0100
Subject: [PATCH] FIX #18282 TIME 0:10 rm unless code

---
 src/frontend/app/viewer/document-viewer.component.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/frontend/app/viewer/document-viewer.component.html b/src/frontend/app/viewer/document-viewer.component.html
index a7df3b4a198..ed85bb5e650 100644
--- a/src/frontend/app/viewer/document-viewer.component.html
+++ b/src/frontend/app/viewer/document-viewer.component.html
@@ -93,7 +93,7 @@
                     </button>
                 </mat-menu>
                 <ng-container *ngIf="mode === 'mainDocument' && !functions.empty(file.subinfos)">
-                    <button *ngIf="file.subinfos.mainDocVersions.length > 1 && !file.subinfos.signedDocVersions && !isModal" mat-button
+                    <button *ngIf="file.subinfos.mainDocVersions.length > 1 && !file.subinfos.signedDocVersions" mat-button
                         [matBadge]="file.subinfos.mainDocVersions.length" [matMenuTriggerFor]="menuVersionsDoc">
                         {{'lang.versions' | translate}}
                     </button>
@@ -102,11 +102,11 @@
                             <span>{{'lang.version' | translate}} {{version}}</span>
                         </button>
                     </mat-menu>
-                    <button *ngIf="file.subinfos.signedDocVersions && !isModal" mat-button
+                    <button *ngIf="file.subinfos.signedDocVersions" mat-button
                         (click)="openResourceVersion(file.subinfos.mainDocVersions[file.subinfos.mainDocVersions.length -1],'SIGN')">
                         {{'lang.SIGN_version' | translate}}
                     </button>
-                    <button *ngIf="file.subinfos.commentedDocVersions > 0 && !isModal" mat-button
+                    <button *ngIf="file.subinfos.commentedDocVersions > 0" mat-button
                         (click)="openResourceVersion(file.subinfos.mainDocVersions[file.subinfos.mainDocVersions.length -1],'NOTE')">
                         {{'lang.NOTE_version' | translate}}
                     </button>
-- 
GitLab