Add 'Open Web UI' menu link
This commit is contained in:
parent
74572168ae
commit
e1d2981782
@ -367,7 +367,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
|
|||||||
new ListTile(
|
new ListTile(
|
||||||
leading: Icon(MaterialDesignIcons.getIconDataFromIconName("mdi:home-assistant")),
|
leading: Icon(MaterialDesignIcons.getIconDataFromIconName("mdi:home-assistant")),
|
||||||
title: Text("Open Web UI"),
|
title: Text("Open Web UI"),
|
||||||
onTap: null,
|
onTap: () => HAUtils.launchURL(homeAssistantWebHost),
|
||||||
),
|
),
|
||||||
Divider()
|
Divider()
|
||||||
]);
|
]);
|
||||||
|
@ -22,7 +22,7 @@ class Panel {
|
|||||||
if (icon == null || !icon.startsWith("mdi:")) {
|
if (icon == null || !icon.startsWith("mdi:")) {
|
||||||
icon = Panel.iconsByComponent[type];
|
icon = Panel.iconsByComponent[type];
|
||||||
}
|
}
|
||||||
isHidden = (type != "iframe");
|
isHidden = (type != "iframe" && type != "config");
|
||||||
}
|
}
|
||||||
|
|
||||||
void handleOpen(BuildContext context) {
|
void handleOpen(BuildContext context) {
|
||||||
|
Reference in New Issue
Block a user