mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Handle update-complete event on add-on page (#10929)
This commit is contained in:
parent
bfad1eb5ac
commit
99bf6fa781
@ -133,6 +133,7 @@ class HassioAddonInfo extends LitElement {
|
|||||||
.narrow=${this.narrow}
|
.narrow=${this.narrow}
|
||||||
.supervisor=${this.supervisor}
|
.supervisor=${this.supervisor}
|
||||||
.addonSlug=${this.addon.slug}
|
.addonSlug=${this.addon.slug}
|
||||||
|
@update-complete=${this._updateComplete}
|
||||||
></update-available-card>
|
></update-available-card>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
@ -865,6 +866,15 @@ class HassioAddonInfo extends LitElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private _updateComplete() {
|
||||||
|
const eventdata = {
|
||||||
|
success: true,
|
||||||
|
response: undefined,
|
||||||
|
path: "install",
|
||||||
|
};
|
||||||
|
fireEvent(this, "hass-api-called", eventdata);
|
||||||
|
}
|
||||||
|
|
||||||
private async _installClicked(ev: CustomEvent): Promise<void> {
|
private async _installClicked(ev: CustomEvent): Promise<void> {
|
||||||
const button = ev.currentTarget as any;
|
const button = ev.currentTarget as any;
|
||||||
button.progress = true;
|
button.progress = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user