Update hassio-addon-dashboard.ts to fix back button issue (#19477)

This commit is contained in:
Cody C 2024-01-20 09:06:29 +13:00 committed by GitHub
parent 319cf64977
commit 45398f84cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -250,7 +250,9 @@ class HassioAddonDashboard extends LitElement {
}
if (path === "uninstall") {
window.history.back();
if (this.isConnected) {
navigate(this._backPath);
}
} else if (path === "install") {
this.addon = await fetchHassioAddonInfo(this.hass, this.addon!.slug);
} else {