Add account button with log out

Add a button on the right of the top nav bar to access account related
functions and add a log out button there.  To make it fit on the navbar
the text and version is hidden on narrow layouts.
This commit is contained in:
Hornwitser committed 2021-03-18 21:52:36 +01:00
1 parent 9542246414
commit e1549c1b0c
5 files changed
+106 -6

No files matched your search

+7 -2
View File
@@ -55,8 +55,13 @@ export default function App(props) {
connector.on("error", onError);
if (token && !connected) {
connector.token = token;
connector.connect();
if (props.control.loggingOut) {
clearToken();
props.control.loggingOut = false;
} else {
connector.token = token;
connector.connect();
}
}
return () => {