Skip to content

Commit

Permalink
Fixes (show configure button and don't make them interactive)
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon committed May 12, 2024
1 parent 0f8b414 commit 7e7905d
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/panels/config/integrations/ha-config-integration-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
<ha-list-new>
${discoveryFlows.map(
(flow) =>
html`<ha-list-item-new
noninteractive
type="text"
class="discovered"
>
html`<ha-list-item-new class="discovered">
${flow.localized_title}
<ha-button
slot="end"
Expand Down Expand Up @@ -458,8 +454,6 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
flow.context.source
);
return html`<ha-list-item-new
noninteractive
type="text"
class="config_entry ${attention ? "attention" : ""}"
>
${flow.localized_title}
Expand Down Expand Up @@ -674,8 +668,6 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
const configPanel = this._configPanel(item.domain, this.hass.panels);

return html`<ha-list-item-new
noninteractive
type="button"
class=${classMap({
config_entry: true,
"state-not-loaded": item!.state === "not_loaded",
Expand Down Expand Up @@ -704,13 +696,13 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
: ""}
</div>
${item.disabled_by === "user"
? html`<mwc-button unelevated slot="meta" @click=${this._handleEnable}>
? html`<mwc-button unelevated slot="end" @click=${this._handleEnable}>
${this.hass.localize("ui.common.enable")}
</mwc-button>`
: configPanel &&
(item.domain !== "matter" || isDevVersion(this.hass.config.version))
? html`<a
slot="meta"
slot="end"
href=${`/${configPanel}?config_entry=${item.entry_id}`}
><mwc-button>
${this.hass.localize(
Expand All @@ -720,7 +712,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
>`
: item.supports_options && !stateText
? html`
<mwc-button slot="meta" @click=${this._showOptions}>
<mwc-button slot="end" @click=${this._showOptions}>
${this.hass.localize(
"ui.panel.config.integrations.config_entry.configure"
)}
Expand Down

0 comments on commit 7e7905d

Please sign in to comment.