Close menu on navigation

This commit is contained in:
Willem Dantuma 2020-01-27 17:01:35 +01:00
parent af1a54ae07
commit 77e4093d14

View File

@ -101,6 +101,14 @@ export class AppCommonEffects {
} }
)); ));
@Effect()
closeMenuOnRouting$:Observable<Action> = this.actions$.pipe(
ofType(appCommonActions.STARTROUTELOADING),
switchMap((action) => {
return of(new appCommonActions.SetMenuVisible(false));
}
));
@Effect({ dispatch: false }) @Effect({ dispatch: false })
fail$: Observable<Action> = this.actions$.pipe( fail$: Observable<Action> = this.actions$.pipe(
ofType(appCommonActions.FAIL), ofType(appCommonActions.FAIL),