mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
Center new more info controls (#15564)
* Center new more info controls * Center change color view
This commit is contained in:
@@ -94,12 +94,12 @@ export const computeShowLogBookComponent = (
|
||||
return true;
|
||||
};
|
||||
|
||||
export const computeShowNewMoreInfo = (stateObj: HassEntity) => {
|
||||
export const computeShowNewMoreInfo = (stateObj: HassEntity): boolean => {
|
||||
const domain = computeDomain(stateObj.entity_id);
|
||||
if (domain === "group") {
|
||||
const groupDomain = computeGroupDomain(stateObj as GroupEntity);
|
||||
return (
|
||||
groupDomain &&
|
||||
groupDomain != null &&
|
||||
groupDomain !== "group" &&
|
||||
DOMAINS_WITH_NEW_MORE_INFO.includes(groupDomain)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user