Dont require manifest for the overflow menu (#9129)

This commit is contained in:
Bram Kragten 2021-05-08 13:08:28 +02:00 committed by GitHub
parent 6edebe18ad
commit 88dc65bc4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -300,9 +300,6 @@ export class HaIntegrationCard extends LitElement {
`
: ""}
</div>
${!this.manifest
? ""
: html`
<ha-button-menu corner="BOTTOM_START">
<mwc-icon-button
.title=${this.hass.localize("ui.common.menu")}
@ -321,8 +318,8 @@ export class HaIntegrationCard extends LitElement {
"ui.panel.config.integrations.config_entry.system_options"
)}
</mwc-list-item>
<a
${this.manifest
? html` <a
href=${this.manifest.documentation}
rel="noreferrer"
target="_blank"
@ -335,23 +332,20 @@ export class HaIntegrationCard extends LitElement {
.path=${mdiOpenInNew}
></ha-svg-icon>
</mwc-list-item>
</a>
</a>`
: ""}
${!item.disabled_by &&
item.state === "loaded" &&
item.supports_unload &&
item.source !== "system"
? html`<mwc-list-item
@request-selected="${this._handleReload}"
>
? html`<mwc-list-item @request-selected="${this._handleReload}">
${this.hass.localize(
"ui.panel.config.integrations.config_entry.reload"
)}
</mwc-list-item>`
: ""}
${item.disabled_by === "user"
? html`<mwc-list-item
@request-selected="${this._handleEnable}"
>
? html`<mwc-list-item @request-selected="${this._handleEnable}">
${this.hass.localize("ui.common.enable")}
</mwc-list-item>`
: item.source !== "system"
@ -373,7 +367,6 @@ export class HaIntegrationCard extends LitElement {
</mwc-list-item>`
: ""}
</ha-button-menu>
`}
</div>
`;
}