Skip to content

Commit

Permalink
feat: add support to autoselect the data verification program
Browse files Browse the repository at this point in the history
  • Loading branch information
josephatJ committed Nov 2, 2022
1 parent 5ec5ea8 commit 63aca80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*ngIf="!params?.programs"
></mat-progress-bar>
<div class="col-6 d-flex justify-content-left">
<mat-form-field class="w-100">
<mat-form-field class="w-100" *ngIf="params?.programs">
<mat-label>Choose form</mat-label>
<mat-select
[(value)]="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export class TopNavBarComponent implements OnInit {
constructor(private programsListService: ProgramsListService) {}

ngOnInit(): void {
this.programs$ = this.programsListService.getProgramsList();
// this.selectedForm = {
// id: 'zRQV8FlMrIx',
// name: 'Data Verification Supervision',
// };
this.programs$ = this.programsListService.getProgramsList(['zRQV8FlMrIx']);
this.programs$.subscribe((programsList) => {
if (programsList) {
this.selectedProgramForm.emit(programsList[0]);
Expand Down

0 comments on commit 63aca80

Please sign in to comment.