diff --git a/src/main/webapp/app/scanexam/associer-copies-etudiants/associer-copies-etudiants.component.ts b/src/main/webapp/app/scanexam/associer-copies-etudiants/associer-copies-etudiants.component.ts index 03f65310..411eb3c9 100644 --- a/src/main/webapp/app/scanexam/associer-copies-etudiants/associer-copies-etudiants.component.ts +++ b/src/main/webapp/app/scanexam/associer-copies-etudiants/associer-copies-etudiants.component.ts @@ -7,7 +7,7 @@ /* eslint-disable no-console */ /* eslint-disable @angular-eslint/no-empty-lifecycle-method */ /* eslint-disable @typescript-eslint/no-empty-function */ -import { AfterViewInit, Component, HostListener, OnInit, ViewChild, effect, signal } from '@angular/core'; +import { AfterViewInit, Component, HostListener, OnInit, ViewChild, effect } from '@angular/core'; import { ExamService } from '../../entities/exam/service/exam.service'; import { ZoneService } from '../../entities/zone/service/zone.service'; import { CourseService } from 'app/entities/course/service/course.service'; @@ -502,7 +502,7 @@ export class AssocierCopiesEtudiantsComponent implements OnInit, AfterViewInit { goToStudent(i: number): void { if (this.list !== undefined) { - this.list._filterValue = signal(''); + this.list._filterValue.set(''); // this.list._filteredOptions = this.list._options(); } diff --git a/src/main/webapp/app/scanexam/chargerscan/chargerscan.component.ts b/src/main/webapp/app/scanexam/chargerscan/chargerscan.component.ts index 236f17c9..7050d448 100644 --- a/src/main/webapp/app/scanexam/chargerscan/chargerscan.component.ts +++ b/src/main/webapp/app/scanexam/chargerscan/chargerscan.component.ts @@ -443,7 +443,7 @@ export class ChargerscanComponent implements OnInit { console.log(`Finished tasks: ${pool.processedCount()}`); })*/ .onTaskFinished((page, pool) => { - this.progress = pool.processedPercentage(); + this.progress = Math.round(pool.processedPercentage() * 10) / 10; this.avancement = this.currentPageAlignOver; this.currentPageAlignOver = this.currentPageAlignOver + 1; this.submessage = '' + this.avancement + this.avancementunit; @@ -461,7 +461,7 @@ export class ChargerscanComponent implements OnInit { // this.blob = undefined; // this.blob1 = undefined; // this.phase1 = false; - this.blocked = false; + // this.blocked = false; this.firstPageToLoad = 0; if (this.viewcomponent !== undefined) { this.viewcomponent.update();