Fix config panel opening
This commit is contained in:
		@@ -28,13 +28,7 @@ class Panel {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  void handleOpen(BuildContext context) {
 | 
					  void handleOpen(BuildContext context) {
 | 
				
			||||||
    if (componentName == "config") {
 | 
					    if (componentName.startsWith('haclient')) {
 | 
				
			||||||
      Navigator.of(context).push(
 | 
					 | 
				
			||||||
          MaterialPageRoute(
 | 
					 | 
				
			||||||
            builder: (context) => PanelPage(title: "$title", panel: this),
 | 
					 | 
				
			||||||
          )
 | 
					 | 
				
			||||||
      );
 | 
					 | 
				
			||||||
    } else if (componentName.startsWith('haclient')) {
 | 
					 | 
				
			||||||
      Navigator.of(context).pushNamed(urlPath);
 | 
					      Navigator.of(context).pushNamed(urlPath);
 | 
				
			||||||
    } else if (componentName == 'lovelace') {
 | 
					    } else if (componentName == 'lovelace') {
 | 
				
			||||||
      HomeAssistant().lovelaceDashboardUrl = this.urlPath;
 | 
					      HomeAssistant().lovelaceDashboardUrl = this.urlPath;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user