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 78c2342a0129ba0b5457a1d5c3a38de4025f6dd9..10d86aeac413e4514ac8908b3f45dd866fd2a5d8 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 d95a0c4c7ffdbe1ee68e2c4cbabc963939a65c53..811c6c6a1882a930930069cb877eb4a88e91061f 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;