mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 05:06:38 +00:00
Fix buttons media player and entity registry
This commit is contained in:
parent
8431099bb9
commit
de0d91e14f
@ -301,6 +301,9 @@ export class HaDeviceEntitiesCard extends LitElement {
|
|||||||
height: 40px;
|
height: 40px;
|
||||||
--mdc-ripple-color: transparent;
|
--mdc-ripple-color: transparent;
|
||||||
}
|
}
|
||||||
|
.card-actions {
|
||||||
|
padding: 4px 16px 4px 4px;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1622,6 +1622,7 @@ export class HaConfigDevicePage extends LitElement {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
padding: 4px 16px 4px 4px;
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
|
@ -28,8 +28,6 @@ import { showDeviceRegistryDetailDialog } from "../devices/device-registry-detai
|
|||||||
import "./entity-registry-settings-editor";
|
import "./entity-registry-settings-editor";
|
||||||
import type { EntityRegistrySettingsEditor } from "./entity-registry-settings-editor";
|
import type { EntityRegistrySettingsEditor } from "./entity-registry-settings-editor";
|
||||||
|
|
||||||
const invalidDomainUpdate = false;
|
|
||||||
|
|
||||||
@customElement("entity-registry-settings")
|
@customElement("entity-registry-settings")
|
||||||
export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
@ -142,10 +140,7 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
|||||||
>
|
>
|
||||||
${this.hass.localize("ui.dialogs.entity_registry.editor.delete")}
|
${this.hass.localize("ui.dialogs.entity_registry.editor.delete")}
|
||||||
</ha-button>
|
</ha-button>
|
||||||
<ha-button
|
<ha-button @click=${this._updateEntry} .loading=${!!this._submitting}>
|
||||||
@click=${this._updateEntry}
|
|
||||||
.disabled=${invalidDomainUpdate || this._submitting}
|
|
||||||
>
|
|
||||||
${this.hass.localize("ui.dialogs.entity_registry.editor.update")}
|
${this.hass.localize("ui.dialogs.entity_registry.editor.update")}
|
||||||
</ha-button>
|
</ha-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -267,6 +267,7 @@ export class DeveloperYamlConfig extends LitElement {
|
|||||||
.card-actions {
|
.card-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
padding: 4px;
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
|
@ -20,13 +20,13 @@ import { computeStateDomain } from "../../common/entity/compute_state_domain";
|
|||||||
import { computeStateName } from "../../common/entity/compute_state_name";
|
import { computeStateName } from "../../common/entity/compute_state_name";
|
||||||
import { supportsFeature } from "../../common/entity/supports-feature";
|
import { supportsFeature } from "../../common/entity/supports-feature";
|
||||||
import { debounce } from "../../common/util/debounce";
|
import { debounce } from "../../common/util/debounce";
|
||||||
import "../../components/ha-slider";
|
|
||||||
import "../../components/ha-button";
|
import "../../components/ha-button";
|
||||||
import "../../components/ha-button-menu";
|
import "../../components/ha-button-menu";
|
||||||
import "../../components/ha-spinner";
|
|
||||||
import "../../components/ha-domain-icon";
|
import "../../components/ha-domain-icon";
|
||||||
import "../../components/ha-icon-button";
|
import "../../components/ha-icon-button";
|
||||||
import "../../components/ha-list-item";
|
import "../../components/ha-list-item";
|
||||||
|
import "../../components/ha-slider";
|
||||||
|
import "../../components/ha-spinner";
|
||||||
import "../../components/ha-state-icon";
|
import "../../components/ha-state-icon";
|
||||||
import "../../components/ha-svg-icon";
|
import "../../components/ha-svg-icon";
|
||||||
import { UNAVAILABLE } from "../../data/entity";
|
import { UNAVAILABLE } from "../../data/entity";
|
||||||
@ -322,22 +322,17 @@ export class BarMediaPlayer extends SubscribeMixin(LitElement) {
|
|||||||
</ha-icon-button>
|
</ha-icon-button>
|
||||||
`
|
`
|
||||||
: html`
|
: html`
|
||||||
<ha-button
|
<ha-button slot="trigger">
|
||||||
slot="trigger"
|
<span slot="start">
|
||||||
.label=${this.narrow
|
|
||||||
? nothing
|
|
||||||
: `${
|
|
||||||
stateObj
|
|
||||||
? computeStateName(stateObj)
|
|
||||||
: this.entityId
|
|
||||||
}
|
|
||||||
`}
|
|
||||||
>
|
|
||||||
<span slot="icon">
|
|
||||||
${this._renderIcon(isBrowser, stateObj)}
|
${this._renderIcon(isBrowser, stateObj)}
|
||||||
</span>
|
</span>
|
||||||
|
${this.narrow
|
||||||
|
? nothing
|
||||||
|
: stateObj
|
||||||
|
? computeStateName(stateObj)
|
||||||
|
: this.entityId}
|
||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
slot="trailingIcon"
|
slot="end"
|
||||||
.path=${mdiChevronDown}
|
.path=${mdiChevronDown}
|
||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
</ha-button>
|
</ha-button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user