Skip to content

Commit

Permalink
fix(stark-ui): session - prevent click outside the Session Timeout Wa…
Browse files Browse the repository at this point in the history
…rning Dialog
  • Loading branch information
SuperITMan committed Feb 3, 2020
1 parent 4fad147 commit 8283216
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe("Effects: StarkSessionTimeoutWarningDialogEffects", () => {
expect(mockObserver.error).not.toHaveBeenCalled();
expect(mockObserver.complete).not.toHaveBeenCalled();
expect(mockDialogService.open).toHaveBeenCalledTimes(1);
expect(mockDialogService.open).toHaveBeenCalledWith(StarkSessionTimeoutWarningDialogComponent, { data: 20 });
expect(mockDialogService.open).toHaveBeenCalledWith(StarkSessionTimeoutWarningDialogComponent, { data: 20, disableClose: true });

expect(mockSessionService.resumeUserActivityTracking).not.toHaveBeenCalled();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export class StarkSessionTimeoutWarningDialogEffects implements OnRunEffects {
map((action: StarkSessionTimeoutCountdownStart) => {
this.sessionService.pauseUserActivityTracking();
this.dialogService
.open<StarkSessionTimeoutWarningDialogComponent>(StarkSessionTimeoutWarningDialogComponent, { data: action.countdown })
.open<StarkSessionTimeoutWarningDialogComponent>(StarkSessionTimeoutWarningDialogComponent, {
data: action.countdown,
disableClose: true
})
.afterClosed()
.subscribe((result: string) => {
if (result && result === "keep-logged") {
Expand Down

0 comments on commit 8283216

Please sign in to comment.