Skip to content
Snippets Groups Projects
Commit 5a2c1964 authored by Augustin LECONTE's avatar Augustin LECONTE
Browse files

fix(print-orientation): progression percentage is 100% when printing

parent cb3ebc7a
No related branches found
No related tags found
2 merge requests!2201.14,!217fix/US52-print-percentage
......@@ -203,8 +203,9 @@ export class OrientationFormComponent implements OnInit {
if (this.currentPage === 0) {
this.previousUrl();
} else {
if (this.currentPage == this.nbPagesForm - 1) this.progressStatus -= (100 / this.nbPagesForm) * 2;
else this.progressStatus -= 100 / this.nbPagesForm;
this.currentPage--;
this.progressStatus -= 100 / this.nbPagesForm;
this.setStructuresAndCoord();
this.updatePageValid();
}
......@@ -532,6 +533,7 @@ export class OrientationFormComponent implements OnInit {
this.multiPrint = event;
setTimeout(() => {
window.print();
this.progressStatus = 100;
}, 1000);
}
......
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