Skip to content
Snippets Groups Projects
Commit ac8f1922 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #16982 TIME 0:45 disable note if document certified

parent 471bb61f
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@
</ion-segment-button>
</ion-segment>
<ion-buttons slot="end" *ngIf="!detailMode">
<ion-button color="primary" (click)="openAction($event)">
<ion-button color="primary" (click)="openAction($event)" [disabled]="!canShowActions()">
<ion-icon slot="icon-only" name="settings-sharp"></ion-icon>
</ion-button>
</ion-buttons>
......@@ -87,7 +87,7 @@
<drag-scroll style="overflow:auto;height: 100%;width: 100%;margin: auto;"
[drag-scroll-disabled]="(signaturesService.dragging || signaturesService.resizing) && signaturesService.mobileMode"
[drag-disabled]="(signaturesService.dragging || signaturesService.resizing) && !signaturesService.mobileMode"
[style.maxWidth.px]="signaturesService.workingAreaWidth" #nav (click)="currentDoc == 0 && !detailMode ? openAction($event) : false">
[style.maxWidth.px]="signaturesService.workingAreaWidth" #nav (click)="canShowActions() ? openAction($event) : false">
<div style="position:relative;cursor: grab;" [style.width.px]="signaturesService.workingAreaWidth"
[style.height.px]="signaturesService.workingAreaHeight" id="myBounds" #myBounds>
<app-document-note-list *ngIf="currentDoc == 0 && !loadingImage">
......
......@@ -200,14 +200,14 @@ export class DocumentComponent implements OnInit {
this.openSignatures();
}
});
buttons.push({
text: this.translate.instant('lang.annotateDocument'),
icon: 'receipt-outline',
handler: () => {
this.openNoteEditor();
}
});
}
buttons.push({
text: this.translate.instant('lang.annotateDocument'),
icon: 'receipt-outline',
handler: () => {
this.openNoteEditor();
}
});
/* if (this.originalSize) {
buttons.push({
text: 'Zoom taille écran',
......@@ -804,4 +804,8 @@ export class DocumentComponent implements OnInit {
}
return res.buffer;
}
canShowActions() {
return this.currentDoc == 0 && !this.detailMode && !this.signaturesService.stampLock;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment