Commits

rbt authored c903d05ca3c
fixed logout before selecting role$
No tags

src/app/role-selector/role-selector.component.html

Modified
6 6 [(ngModel)]="selectedRole">
7 7 <mat-option *ngFor="let eligibleRole of userContextService.eligibleRoles$ | async"
8 8 [value]="eligibleRole">{{eligibleRole.educationType}}
9 9 </mat-option>
10 10 </app-dropdown>
11 11 <app-sor-lookup-input label="Vælg organisation"
12 12 [(ngModel)]="selectedOrganisation"
13 13 [type]="'healthCareOrganization'"
14 14 ></app-sor-lookup-input>
15 15 <div class="button-container">
16 - <button mat-flat-button color="accent" tabindex="-1" [routerLink]="'/logout'">Log ud</button>
16 + <button mat-flat-button color="accent" tabindex="-1" (click)="logout()">Log ud</button>
17 17 <button mat-flat-button color="primary"
18 18 class="submit-button"
19 19 [disabled]="!selectedRole || !selectedOrganisation"
20 20 (click)="continue()">Fortsæt</button>
21 21 </div>
22 22 </div>
23 23 </ng-template>
24 24 </div>

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut