mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 12:16:39 +00:00
Await ignoring before refreshing config flows in progress (#5722)
This commit is contained in:
parent
108233f3b8
commit
99e73054a9
@ -523,9 +523,9 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private _ignoreFlow(ev: Event) {
|
private async _ignoreFlow(ev: Event) {
|
||||||
const flow = (ev.target! as any).flow;
|
const flow = (ev.target! as any).flow;
|
||||||
showConfirmationDialog(this, {
|
const confirmed = await showConfirmationDialog(this, {
|
||||||
title: this.hass!.localize(
|
title: this.hass!.localize(
|
||||||
"ui.panel.config.integrations.ignore.confirm_ignore_title",
|
"ui.panel.config.integrations.ignore.confirm_ignore_title",
|
||||||
"name",
|
"name",
|
||||||
@ -537,11 +537,13 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
|
|||||||
confirmText: this.hass!.localize(
|
confirmText: this.hass!.localize(
|
||||||
"ui.panel.config.integrations.ignore.ignore"
|
"ui.panel.config.integrations.ignore.ignore"
|
||||||
),
|
),
|
||||||
confirm: () => {
|
|
||||||
ignoreConfigFlow(this.hass, flow.flow_id);
|
|
||||||
getConfigFlowInProgressCollection(this.hass.connection).refresh();
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
if (!confirmed) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
await ignoreConfigFlow(this.hass, flow.flow_id);
|
||||||
|
this._loadConfigEntries();
|
||||||
|
getConfigFlowInProgressCollection(this.hass.connection).refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
private _toggleShowIgnored() {
|
private _toggleShowIgnored() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user