From 827d6300d7ac7fd20512ad31a9fac9643112f399 Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Mon, 30 Nov 2020 14:36:03 +0100 Subject: [PATCH] FEAT #00000 TIME 0 fix build prod --- .../signature-position/signature-position.component.html | 6 +++--- .../signature-position/signature-position.component.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontend/app/actions/send-external-signatory-book-action/maarch-paraph/signature-position/signature-position.component.html b/src/frontend/app/actions/send-external-signatory-book-action/maarch-paraph/signature-position/signature-position.component.html index 78c2342a012..10d86aeac41 100644 --- a/src/frontend/app/actions/send-external-signatory-book-action/maarch-paraph/signature-position/signature-position.component.html +++ b/src/frontend/app/actions/send-external-signatory-book-action/maarch-paraph/signature-position/signature-position.component.html @@ -5,7 +5,7 @@ <mat-spinner style="margin:auto;"></mat-spinner> </div> <div style="display: flex;height: 100%;flex-direction:column"> - <nav mat-tab-nav-bar *ngIf="!loading" class="workflowList" [backgroundColor]="background"> + <nav mat-tab-nav-bar *ngIf="!loading" class="workflowList"> <a mat-tab-link *ngFor="let user of data.workflow;let i=index" (click)="selectUser(i)" [active]="currentUser == i"> <div> @@ -33,7 +33,7 @@ <div *ngIf="sign.page === currentPage" [class.signDisabled]="currentUser!==sign.sequence" [position]="{x: (sign.position.positionX*workingAreaWidth)/100, y:(sign.position.positionY*workingAreaHeight)/100}" [style.width.%]="25" [ngDraggable]="currentUser===sign.sequence" - (endOffset)="moveSign($event, i);" [preventDefaultEvent]="false" [bounds]="myBounds" + (endOffset)="moveSign($event);" [preventDefaultEvent]="false" [bounds]="myBounds" [inBounds]="true" class="signature" (click)="currentUser!=sign.sequence ? goToSignUserPage(sign.sequence, currentPage) : false"> <button style="position: absolute;top: -50px;right: 0px;" mat-icon-button color="warn" [title]="'lang.delete' | translate" (click)="deleteSign(indexSign)"> @@ -46,7 +46,7 @@ </div> <mat-form-field *ngIf="!loading" class="pageList" style="position: fixed;"> <span matPrefix>Page : </span> - <mat-select [(ngModel)]="currentPage" (selectionChange)="changePage($event.value)"> + <mat-select [(ngModel)]="currentPage" (selectionChange)="false"> <mat-option *ngFor="let page of pages" [value]="page">{{page}}</mat-option> </mat-select> </mat-form-field> diff --git a/src/frontend/app/actions/send-external-signatory-book-action/maarch-paraph/signature-position/signature-position.component.ts b/src/frontend/app/actions/send-external-signatory-book-action/maarch-paraph/signature-position/signature-position.component.ts index d95a0c4c7ff..811c6c6a188 100644 --- a/src/frontend/app/actions/send-external-signatory-book-action/maarch-paraph/signature-position/signature-position.component.ts +++ b/src/frontend/app/actions/send-external-signatory-book-action/maarch-paraph/signature-position/signature-position.component.ts @@ -79,7 +79,7 @@ export class SignaturePositionComponent implements OnInit { img.src = imgContent; } - moveSign(event: any, i: number) { + moveSign(event: any) { const percentx = (event.x * 100) / this.workingAreaWidth; const percenty = (event.y * 100) / this.workingAreaHeight; this.signList.filter((item: any) => item.sequence === this.currentUser && item.page === this.currentPage)[0].position.positionX = percentx; -- GitLab