mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 01:36:49 +00:00
Dont require manifest for the overflow menu (#9129)
This commit is contained in:
parent
6edebe18ad
commit
88dc65bc4e
@ -300,9 +300,6 @@ export class HaIntegrationCard extends LitElement {
|
|||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
</div>
|
</div>
|
||||||
${!this.manifest
|
|
||||||
? ""
|
|
||||||
: html`
|
|
||||||
<ha-button-menu corner="BOTTOM_START">
|
<ha-button-menu corner="BOTTOM_START">
|
||||||
<mwc-icon-button
|
<mwc-icon-button
|
||||||
.title=${this.hass.localize("ui.common.menu")}
|
.title=${this.hass.localize("ui.common.menu")}
|
||||||
@ -321,8 +318,8 @@ export class HaIntegrationCard extends LitElement {
|
|||||||
"ui.panel.config.integrations.config_entry.system_options"
|
"ui.panel.config.integrations.config_entry.system_options"
|
||||||
)}
|
)}
|
||||||
</mwc-list-item>
|
</mwc-list-item>
|
||||||
|
${this.manifest
|
||||||
<a
|
? html` <a
|
||||||
href=${this.manifest.documentation}
|
href=${this.manifest.documentation}
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@ -335,23 +332,20 @@ export class HaIntegrationCard extends LitElement {
|
|||||||
.path=${mdiOpenInNew}
|
.path=${mdiOpenInNew}
|
||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
</mwc-list-item>
|
</mwc-list-item>
|
||||||
</a>
|
</a>`
|
||||||
|
: ""}
|
||||||
${!item.disabled_by &&
|
${!item.disabled_by &&
|
||||||
item.state === "loaded" &&
|
item.state === "loaded" &&
|
||||||
item.supports_unload &&
|
item.supports_unload &&
|
||||||
item.source !== "system"
|
item.source !== "system"
|
||||||
? html`<mwc-list-item
|
? html`<mwc-list-item @request-selected="${this._handleReload}">
|
||||||
@request-selected="${this._handleReload}"
|
|
||||||
>
|
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.config.integrations.config_entry.reload"
|
"ui.panel.config.integrations.config_entry.reload"
|
||||||
)}
|
)}
|
||||||
</mwc-list-item>`
|
</mwc-list-item>`
|
||||||
: ""}
|
: ""}
|
||||||
${item.disabled_by === "user"
|
${item.disabled_by === "user"
|
||||||
? html`<mwc-list-item
|
? html`<mwc-list-item @request-selected="${this._handleEnable}">
|
||||||
@request-selected="${this._handleEnable}"
|
|
||||||
>
|
|
||||||
${this.hass.localize("ui.common.enable")}
|
${this.hass.localize("ui.common.enable")}
|
||||||
</mwc-list-item>`
|
</mwc-list-item>`
|
||||||
: item.source !== "system"
|
: item.source !== "system"
|
||||||
@ -373,7 +367,6 @@ export class HaIntegrationCard extends LitElement {
|
|||||||
</mwc-list-item>`
|
</mwc-list-item>`
|
||||||
: ""}
|
: ""}
|
||||||
</ha-button-menu>
|
</ha-button-menu>
|
||||||
`}
|
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user