Skip to content
Snippets Groups Projects
Commit 46a01e40 authored by Florent POITTEVIN's avatar Florent POITTEVIN
Browse files

fix: lint errors

parent f22e8cf8
No related branches found
No related tags found
No related merge requests found
...@@ -11,8 +11,6 @@ import { ...@@ -11,8 +11,6 @@ import {
TRANSLATE, TRANSLATE,
} from "solidify-frontend"; } from "solidify-frontend";
let code: string = undefined;
function getQueryParam(): string { function getQueryParam(): string {
// NEED FOR OAUTH 2 CODE QUERY PARAM // NEED FOR OAUTH 2 CODE QUERY PARAM
const queryParam = window.location.href.split("?")[1]; const queryParam = window.location.href.split("?")[1];
...@@ -114,4 +112,4 @@ const routes: DlcmRoutes = [ ...@@ -114,4 +112,4 @@ const routes: DlcmRoutes = [
exports: [RouterModule], exports: [RouterModule],
}) })
export class AppRoutingModule { export class AppRoutingModule {
} }
\ No newline at end of file
...@@ -447,18 +447,16 @@ export class AppState extends BasicState<AppStateModel> { ...@@ -447,18 +447,16 @@ export class AppState extends BasicState<AppStateModel> {
// Logout client side // Logout client side
this.oauthService.logOut(true); this.oauthService.logOut(true);
}), }),
mergeMap(() => { mergeMap(() => ctx.dispatch(new Navigate([RoutesEnum.homePage])),
return ctx.dispatch(new Navigate([RoutesEnum.homePage])); tap(() => {
}), ctx.patchState({
tap(() => { ignorePreventLeavePopup: false,
ctx.patchState({ });
ignorePreventLeavePopup: false, if (isTrue(environment.reloadAfterLogout)) {
}); window.location.reload();
if (isTrue(environment.reloadAfterLogout)) { }
window.location.reload(); }),
} );
}),
);
} }
@Action(AppAction.CancelPreventExit) @Action(AppAction.CancelPreventExit)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment