Skip to content
Snippets Groups Projects
Unverified Commit e06e5ea0 authored by clmntsl's avatar clmntsl Committed by GitHub
Browse files

Merge pull request #451 from ProgrammeVitam/vas_bug_8586_import_steps_isuue

[VAS] BUG 8586 : correct progress bar issue
parents 77f80a87 eb71ca58
No related branches found
No related tags found
1 merge request!51Merge mis a jour vitam-ui
......@@ -44,7 +44,6 @@ const PROGRESS_BAR_MULTIPLICATOR = 100;
styleUrls: ['./common-progress-bar.component.scss'],
})
export class CommonProgressBarComponent implements OnInit {
// tslint:disable-next-line: variable-name
private _count: number;
// tslint:disable-next-line: variable-name
......@@ -74,6 +73,6 @@ export class CommonProgressBarComponent implements OnInit {
ngOnInit() {}
getProgressValue(index: number, count: number): number {
return ((index) / count) * PROGRESS_BAR_MULTIPLICATOR;
return ((index + 1) / count) * PROGRESS_BAR_MULTIPLICATOR;
}
}
......@@ -42,7 +42,7 @@ import { BytesPipe, Logger } from 'ui-frontend-common';
import { VitamUISnackBarComponent } from '../../shared/vitamui-snack-bar';
import { UploadService } from './upload.service';
const LAST_STEP_INDEX = 2;
const LAST_STEP_INDEX = 1;
@Component({
selector: 'app-upload',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment