mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-05 15:37:47 +00:00
Do not show AI suggestion button when no inputs in save dialog (#26357)
This commit is contained in:
parent
bd9de0680e
commit
6022f9a77e
@ -260,12 +260,14 @@ class DialogAutomationSave extends LitElement implements HassDialog {
|
|||||||
.path=${mdiClose}
|
.path=${mdiClose}
|
||||||
></ha-icon-button>
|
></ha-icon-button>
|
||||||
<span slot="title">${this._params.title || title}</span>
|
<span slot="title">${this._params.title || title}</span>
|
||||||
<ha-suggest-with-ai-button
|
${this._params.hideInputs
|
||||||
|
? nothing
|
||||||
|
: html` <ha-suggest-with-ai-button
|
||||||
slot="actionItems"
|
slot="actionItems"
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.generateTask=${this._generateTask}
|
.generateTask=${this._generateTask}
|
||||||
@suggestion=${this._handleSuggestion}
|
@suggestion=${this._handleSuggestion}
|
||||||
></ha-suggest-with-ai-button>
|
></ha-suggest-with-ai-button>`}
|
||||||
</ha-dialog-header>
|
</ha-dialog-header>
|
||||||
${this._error
|
${this._error
|
||||||
? html`<ha-alert alert-type="error"
|
? html`<ha-alert alert-type="error"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user