Skip to content

Commit

Permalink
Merge Enable logging out from routes other than search (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
danjov authored Aug 4, 2022
2 parents 31446c1 + 32f5eaa commit 48c4cf8
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/ClientApp/src/components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,16 @@ export function Layout(props) {
Grundlagedaten EWS
</Typography>
<Tooltip title="Abmelden">
<IconButton
onClick={() => {
window.location.href = "/login/sls/auth?cmd=logout";
setTimeout(window.location.reload, 10);
window.location.href = "";
}}
color="inherit"
component="a"
>
<LogoutIcon />
</IconButton>
<a href={window.location.origin.toString() + "/login/sls/auth?cmd=logout"}>
<IconButton
onClick={() => {
window.location.reload();
}}
sx={{ color: "white" }}
>
<LogoutIcon />
</IconButton>
</a>
</Tooltip>
</Toolbar>
</AppBar>
Expand Down

0 comments on commit 48c4cf8

Please sign in to comment.