mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Fix delete entity alias (#22058)
Fix aliasChanged to save deleted in entity-voice-settings
This commit is contained in:
parent
af46b8221e
commit
f36d68c677
@ -305,7 +305,15 @@ export class EntityVoiceSettings extends SubscribeMixin(LitElement) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _aliasesChanged(ev) {
|
private _aliasesChanged(ev) {
|
||||||
|
const currentLength =
|
||||||
|
this._aliases?.length ?? this.entry?.aliases?.length ?? 0;
|
||||||
|
|
||||||
this._aliases = ev.detail.value;
|
this._aliases = ev.detail.value;
|
||||||
|
|
||||||
|
// if an entry was deleted, then save changes
|
||||||
|
if (currentLength > ev.detail.value.length) {
|
||||||
|
this._saveAliases();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _2faChanged(ev) {
|
private async _2faChanged(ev) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user