79700: Doc fixes, Spec tests authService & ariaLabelledBy for idle-modal

This commit is contained in:
Marie Verdonck
2021-07-01 15:50:21 +02:00
parent 829ce12710
commit 6c219e72d5
5 changed files with 88 additions and 10 deletions

View File

@@ -249,7 +249,7 @@ export class AppComponent implements OnInit, AfterViewInit {
.subscribe(([userIdle, authenticated]) => {
if (userIdle && authenticated) {
if (!this.idleModalOpen) {
const modalRef = this.modalService.open(IdleModalComponent);
const modalRef = this.modalService.open(IdleModalComponent, { ariaLabelledBy: 'idle-modal.header' });
this.idleModalOpen = true;
modalRef.componentInstance.response.pipe(take(1)).subscribe((closed: boolean) => {
if (closed) {