|
|
|
@ -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) {
|
|
|
|
|