aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-02-12 18:28:27 -0600
committerJP Dillingham <jpdillingham@gmail.com>2022-02-12 18:28:27 -0600
commita3f331c61bb344841c0941d844de125ed7458c0a (patch)
tree591c0f090fad083a88bc1ffb9b1250e3940687bf /src/web
parent8d2120d59acf3a3d5bdb86fbeb59355f74bee14e (diff)
downloadslskd-a3f331c61bb344841c0941d844de125ed7458c0a.tar.gz
fix broken logout button
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/App.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/src/components/App.js b/src/web/src/components/App.js
index 1aba87d6..902c20e7 100644
--- a/src/web/src/components/App.js
+++ b/src/web/src/components/App.js
@@ -98,7 +98,7 @@ class App extends Component {
logout = () => {
session.logout();
- this.setState({ ...initialState, login: { ...initialState.login, initialized: true }});
+ this.setState({ ...initialState, initialized: true, login: { ...initialState.login }});
};
withTokenCheck = (component) => {
@@ -234,7 +234,7 @@ class App extends Component {
size='mini'
header={<Header icon='sign-out' content='Confirm Log Out' />}
content='Are you sure you want to log out?'
- actions={['Cancel', { key: 'done', content: 'Log Out', negative: true, onClick: session.logout }]}
+ actions={['Cancel', { key: 'done', content: 'Log Out', negative: true, onClick: this.logout }]}
/>}
</Menu>
</Sidebar>