Skip to content
Snippets Groups Projects
Commit 8805fac0 authored by Quentin Ribac's avatar Quentin Ribac
Browse files

FIX #20786 TIME 1:00 remove unsigning button on autosigned attachment

parent 54336bae
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,7 @@
[disabled]="!editMode || !isEditing()">{{'lang.createNewVersion' | translate}}</button>
<button mat-raised-button color="primary" *ngIf="newVersion && sendMassMode && !loading" (click)="createNewVersion('mailing')"
[disabled]="!editMode || !isEditing()">{{'lang.mailing' | translate}}</button>
<button mat-raised-button color="warn" *ngIf="!loading && attachment.status.value === 'SIGN' && this.headerService.user.id == attachment.signatoryId.value"
<button mat-raised-button color="warn" *ngIf="!loading && attachment.status.value === 'SIGN' && this.headerService.user.id == attachment.signatoryId.value && !signedByDefault"
(click)="deleteSignedVersion()">{{'lang.deleteSignedVersion' | translate}}</button>
<button mat-raised-button mat-button [disabled]="loading" (click)="closeModal()">{{'lang.close' | translate}}</button>
</div>
......
......@@ -38,6 +38,7 @@ export class AttachmentPageComponent implements OnInit {
versions: any[] = [];
hidePanel: boolean = false;
newVersion: boolean = false;
signedByDefault: boolean = false;
attachFormGroup: FormGroup = null;
......@@ -149,6 +150,7 @@ export class AttachmentPageComponent implements OnInit {
this.attachmentsTypes = this.attachmentsTypes.filter((item: any) => item.typeId === data.type || item.visible);
this.newVersion = this.attachmentsTypes.filter((item: any) => item.typeId === data.type)[0].newVersionDefault;
this.signedByDefault = this.attachmentsTypes.filter((item: any) => item.typeId === data.type)[0].signedByDefault;
this.attachFormGroup = new FormGroup(this.attachment);
resolve(true);
......
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