Add name to account model

Add the name of the account that's connected to the control link on the
web interface via an additional property on the ready payload for the
control link.
This commit is contained in:
Hornwitser committed 2021-03-18 23:05:47 +01:00
1 parent e1549c1b0c
commit 6458810571
6 files changed
+50 -5

No files matched your search

@@ -52,6 +52,8 @@ export default function SiteLayout(props) {
}
let accountMenu = <Menu>
<Menu.ItemGroup title={account.name}/>
<Menu.Divider/>
<Menu.Item danger onClick={() => { account.logOut(); }}>Log out</Menu.Item>
</Menu>;