Skip to content

Commit

Permalink
refactor(idle): cleanup #1660
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Dec 11, 2021
1 parent 30af9c6 commit 16e05c5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/features/idle/store/idle.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class IdleEffects {
),
);

handleIdle$ = createEffect(() =>
handleIdleInit$ = createEffect(() =>
this._store.select(selectIsIdle).pipe(
distinctUntilChanged(),
switchMap((isIdle) => iif(() => isIdle, of(isIdle))),
Expand Down Expand Up @@ -183,7 +183,7 @@ export class IdleEffects {
),
);

onIdleDialogResult$ = createEffect(() =>
handleIdleDialogResult$ = createEffect(() =>
this.actions$.pipe(
ofType(idleDialogResult),
withLatestFrom(this._store.select(selectIdleTime)),
Expand Down Expand Up @@ -283,9 +283,9 @@ export class IdleEffects {
private _uiHelperService: UiHelperService,
private _idleService: IdleService,
) {
window.setTimeout(() => {
this._store.dispatch(triggerIdle({ idleTime: 60 * 1000 }));
}, 2700);
// window.setTimeout(() => {
// this._store.dispatch(triggerIdle({ idleTime: 60 * 1000 }));
// }, 2700);
}

private _initIdlePoll(initialIdleTime: number): void {
Expand Down

0 comments on commit 16e05c5

Please sign in to comment.