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

FEAT #00000 TIME 0 fix build prod

parent 391796ac
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<mat-spinner style="margin:auto;"></mat-spinner> <mat-spinner style="margin:auto;"></mat-spinner>
</div> </div>
<div style="display: flex;height: 100%;flex-direction:column"> <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)" <a mat-tab-link *ngFor="let user of data.workflow;let i=index" (click)="selectUser(i)"
[active]="currentUser == i"> [active]="currentUser == i">
<div> <div>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<div *ngIf="sign.page === currentPage" [class.signDisabled]="currentUser!==sign.sequence" <div *ngIf="sign.page === currentPage" [class.signDisabled]="currentUser!==sign.sequence"
[position]="{x: (sign.position.positionX*workingAreaWidth)/100, y:(sign.position.positionY*workingAreaHeight)/100}" [position]="{x: (sign.position.positionX*workingAreaWidth)/100, y:(sign.position.positionY*workingAreaHeight)/100}"
[style.width.%]="25" [ngDraggable]="currentUser===sign.sequence" [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"> [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" <button style="position: absolute;top: -50px;right: 0px;" mat-icon-button color="warn" [title]="'lang.delete' | translate"
(click)="deleteSign(indexSign)"> (click)="deleteSign(indexSign)">
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</div> </div>
<mat-form-field *ngIf="!loading" class="pageList" style="position: fixed;"> <mat-form-field *ngIf="!loading" class="pageList" style="position: fixed;">
<span matPrefix>Page :&nbsp;</span> <span matPrefix>Page :&nbsp;</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-option *ngFor="let page of pages" [value]="page">{{page}}</mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
......
...@@ -79,7 +79,7 @@ export class SignaturePositionComponent implements OnInit { ...@@ -79,7 +79,7 @@ export class SignaturePositionComponent implements OnInit {
img.src = imgContent; img.src = imgContent;
} }
moveSign(event: any, i: number) { moveSign(event: any) {
const percentx = (event.x * 100) / this.workingAreaWidth; const percentx = (event.x * 100) / this.workingAreaWidth;
const percenty = (event.y * 100) / this.workingAreaHeight; const percenty = (event.y * 100) / this.workingAreaHeight;
this.signList.filter((item: any) => item.sequence === this.currentUser && item.page === this.currentPage)[0].position.positionX = percentx; this.signList.filter((item: any) => item.sequence === this.currentUser && item.page === this.currentPage)[0].position.positionX = percentx;
......
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