Only show docs link when showing a form

This commit is contained in:
Paulus Schoutsen 2022-03-23 14:51:01 -07:00
parent 95b80accc9
commit cbd030a379

View File

@ -238,12 +238,14 @@ class DataEntryFlowDialog extends LitElement {
""
: html`
<div class="dialog-actions">
${this._step
${["form", "menu", "external"].includes(
this._step?.type as any
)
? html`
<a
href=${documentationUrl(
this.hass,
`/integrations/${this._step.handler}`
`/integrations/${this._step!.handler}`
)}
target="_blank"
rel="noreferrer noopener"