mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-16 06:18:27 +00:00
Run yarn format.
This commit is contained in:
@ -72,13 +72,13 @@ class Header extends Component<IProps, IState> {
|
||||
if (!oidc.getEnabled() || oidc.getLogoutUrl() === "") {
|
||||
SessionStore.logout(true, () => {
|
||||
this.props.history.push("/login");
|
||||
});
|
||||
});
|
||||
} else {
|
||||
SessionStore.logout(false, () => {
|
||||
window.location.assign(oidc.getLogoutUrl());
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
render() {
|
||||
if (this.state.settings === undefined) {
|
||||
@ -94,9 +94,7 @@ class Header extends Component<IProps, IState> {
|
||||
<Link to={`/users/${this.props.user.getId()}/password`}>Change password</Link>
|
||||
</Menu.Item>
|
||||
)}
|
||||
<Menu.Item onClick={this.onLogout}>
|
||||
Logout
|
||||
</Menu.Item>
|
||||
<Menu.Item onClick={this.onLogout}>Logout</Menu.Item>
|
||||
</Menu>
|
||||
);
|
||||
|
||||
|
@ -186,9 +186,7 @@ class SideMenu extends Component<RouteComponentProps, IState> {
|
||||
key: "ns",
|
||||
label: "Network Server",
|
||||
icon: <CloudOutlined />,
|
||||
children: [
|
||||
{ key: "ns-regions", icon: <CompassOutlined />, label: <Link to="/regions">Regions</Link> },
|
||||
],
|
||||
children: [{ key: "ns-regions", icon: <CompassOutlined />, label: <Link to="/regions">Regions</Link> }],
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user