mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Don't suggest to pick another card for sections (#19977)
This commit is contained in:
parent
a9f453ea36
commit
63d93f2a36
@ -131,11 +131,15 @@ export class HuiDialogSuggestCard extends LitElement {
|
|||||||
</mwc-button>
|
</mwc-button>
|
||||||
${!this._params.yaml
|
${!this._params.yaml
|
||||||
? html`
|
? html`
|
||||||
<mwc-button slot="primaryAction" @click=${this._pickCard}
|
${!(this._sectionConfig && this._viewSupportsSection)
|
||||||
>${this.hass!.localize(
|
? html`
|
||||||
"ui.panel.lovelace.editor.suggest_card.create_own"
|
<mwc-button slot="primaryAction" @click=${this._pickCard}>
|
||||||
)}</mwc-button
|
${this.hass!.localize(
|
||||||
>
|
"ui.panel.lovelace.editor.suggest_card.create_own"
|
||||||
|
)}
|
||||||
|
</mwc-button>
|
||||||
|
`
|
||||||
|
: nothing}
|
||||||
<mwc-button
|
<mwc-button
|
||||||
slot="primaryAction"
|
slot="primaryAction"
|
||||||
.disabled=${this._saving}
|
.disabled=${this._saving}
|
||||||
@ -154,7 +158,7 @@ export class HuiDialogSuggestCard extends LitElement {
|
|||||||
)}
|
)}
|
||||||
</mwc-button>
|
</mwc-button>
|
||||||
`
|
`
|
||||||
: ""}
|
: nothing}
|
||||||
</ha-dialog>
|
</ha-dialog>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user