diff --git a/src/frontend/app/viewer/document-viewer.component.html b/src/frontend/app/viewer/document-viewer.component.html index 4f9532fcbded2e54706e5f13d81f234a2fb025a8..02b2db2e06563090e25dbd269dab1cb3e892063b 100644 --- a/src/frontend/app/viewer/document-viewer.component.html +++ b/src/frontend/app/viewer/document-viewer.component.html @@ -70,6 +70,7 @@ <button mat-icon-button [matMenuTriggerFor]="menuOptions"> <mat-icon class="fas fa-chevron-down"></mat-icon> </button> + <div class="divider"></div> <mat-menu #menuOptions="matMenu" [class]="'optionsListMenu'"> <button mat-menu-item *ngIf="file.contentView !== undefined || base64 !== null" (click)="openPdfInTab()"> <mat-icon color="primary" class="fas fa-external-link-alt"></mat-icon> @@ -103,13 +104,13 @@ <span>{{'lang.version' | translate}} {{version}}</span> </button> </mat-menu> - <button *ngIf="file.subinfos.signedDocVersions" mat-button + <button *ngIf="file.subinfos.signedDocVersions" mat-button class="originalVersion" [title]="'lang.unsignedVersionDesc' | translate" (click)="openResourceVersion(file.subinfos.mainDocVersions[file.subinfos.mainDocVersions.length -1],'SIGN')"> - {{'lang.SIGN_version' | translate}} + {{'lang.unsignedVersionDesc' | translate}} </button> - <button *ngIf="file.subinfos.commentedDocVersions > 0" mat-button + <button *ngIf="file.subinfos.commentedDocVersions > 0" mat-button class="originalVersion" [title]="'lang.unannotatedVersionDesc' | translate" (click)="openResourceVersion(file.subinfos.mainDocVersions[file.subinfos.mainDocVersions.length -1],'NOTE')"> - {{'lang.NOTE_version' | translate}} + {{'lang.unannotatedVersionDesc' | translate}} </button> </ng-container> </div> diff --git a/src/frontend/app/viewer/document-viewer.component.scss b/src/frontend/app/viewer/document-viewer.component.scss index 257ccc2b1458abae723d5f6f4b55b2e0c9738d07..7b1a7c825dbb06713ce83ff42b35d640747720f2 100644 --- a/src/frontend/app/viewer/document-viewer.component.scss +++ b/src/frontend/app/viewer/document-viewer.component.scss @@ -229,4 +229,8 @@ padding: 0.02em; margin-top: 10px; margin-bottom: 10px; +} + +.originalVersion { + font-weight: bold; } \ No newline at end of file diff --git a/src/lang/lang-en.json b/src/lang/lang-en.json index f2b81ae2df3e301167a20a372a8fc6b04165e5b7..c5e7375158a042b57ddad2989c4b5e11a7a6e693 100644 --- a/src/lang/lang-en.json +++ b/src/lang/lang-en.json @@ -2659,5 +2659,7 @@ "nextRes": "Next mail", "previousRes": "Previous mail", "canGoToNextRes": "Move to next mail when action is complete", - "canGoToNextResDesc": "Activating this option saves this choice in your session" + "canGoToNextResDesc": "Activating this option saves this choice in your session", + "unsignedVersionDesc": "See the unsigned version", + "unannotatedVersionDesc": "See the unannotated version" } diff --git a/src/lang/lang-fr.json b/src/lang/lang-fr.json index 2a39d339facf257ae46982eb75230b7bf0e57b76..4cc2d477a5423868301129ba850c54f4113dba72 100644 --- a/src/lang/lang-fr.json +++ b/src/lang/lang-fr.json @@ -2658,5 +2658,7 @@ "canGoToNextResDesc": "L'activation de cette option permet de sauvegarder ce choix dans votre session", "processDelayEnabled": "Délai de traitement activé", "processDelayDisabled": "Délai de traitement désactivé", - "disableProcessDelayDesc": "Ce type de document n'est plus pris en compte pour le calcul de la date limite de traitement" + "disableProcessDelayDesc": "Ce type de document n'est plus pris en compte pour le calcul de la date limite de traitement", + "unsignedVersionDesc": "Voir la version non signée", + "unannotatedVersionDesc": "Voir la version non annotée" }