fix private channels dashboard button (thanks doggybootsy)

pull/88/head
dperolio 3 years ago
parent ce5636b006
commit 3afc7b3ab9

@ -103,15 +103,15 @@ export default class Dashboard extends Builtin {
if (!res.props?.children) {
return;
}
res.props.children = [
...res.props.children.slice(0, 0), () =>
<LinkButton
icon={() => <Icon name='Vizality' />}
route='/vizality'
text='Dashboard'
selected={vizality.api.routes.getLocation()?.pathname?.startsWith('/vizality')}
onContextMenu={evt => openContextMenu(evt, () => <SettingsContextMenu />)}
/>,
res.props.children.props.children = [
...res.props.children.props.children.slice(0, 0),
<LinkButton
icon={() => <Icon name='Vizality' />}
route='/vizality'
text='Dashboard'
selected={vizality.api.routes.getLocation()?.pathname?.startsWith('/vizality')}
onContextMenu={evt => openContextMenu(evt, () => <SettingsContextMenu />)}
/>,
...res.props.children.slice(0)
];
} catch (err) {

Loading…
Cancel
Save