Add 'Open Web UI' menu link

This commit is contained in:
estevez-dev 2019-03-13 17:25:08 +02:00
parent 74572168ae
commit e1d2981782
2 changed files with 2 additions and 2 deletions

View File

@ -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()
]); ]);

View File

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