fix: entity state and execute automation cards aren't movable (#2043)
* fix: entity state and execute automation cards aren't movable * fix: disable eslint issue
This commit is contained in:
@@ -82,9 +82,8 @@ const InnerContent = ({ item, ...dimensions }: InnerContentProps) => {
|
|||||||
when={
|
when={
|
||||||
widgetSupportsIntegrations &&
|
widgetSupportsIntegrations &&
|
||||||
item.integrationIds.length === 0 &&
|
item.integrationIds.length === 0 &&
|
||||||
"integrationsRequired" in definition &&
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||||
definition.integrationsRequired !== false
|
(!("integrationsRequired" in definition) || definition.integrationsRequired !== false)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<BoardItemMenu offset={4} item={newItem} />
|
<BoardItemMenu offset={4} item={newItem} />
|
||||||
|
|||||||
@@ -77,7 +77,12 @@ export default function SmartHomeEntityStateWidget({
|
|||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
w="100%"
|
w="100%"
|
||||||
h="100%"
|
h="100%"
|
||||||
styles={{ root: { cursor: options.clickable && !isEditMode ? "pointer" : "initial" } }}
|
styles={{
|
||||||
|
root: {
|
||||||
|
cursor: options.clickable && !isEditMode ? "pointer" : "initial",
|
||||||
|
pointerEvents: isEditMode ? "none" : undefined,
|
||||||
|
},
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Center h="100%" w="100%">
|
<Center h="100%" w="100%">
|
||||||
<Stack align="center" gap="md">
|
<Stack align="center" gap="md">
|
||||||
|
|||||||
@@ -60,7 +60,12 @@ export default function SmartHomeTriggerAutomationWidget({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<UnstyledButton onClick={handleClick} style={{ cursor: !isEditMode ? "pointer" : "initial" }} w="100%" h="100%">
|
<UnstyledButton
|
||||||
|
onClick={handleClick}
|
||||||
|
style={{ cursor: !isEditMode ? "pointer" : "initial", pointerEvents: isEditMode ? "none" : undefined }}
|
||||||
|
w="100%"
|
||||||
|
h="100%"
|
||||||
|
>
|
||||||
{isShowSuccess && (
|
{isShowSuccess && (
|
||||||
<Overlay>
|
<Overlay>
|
||||||
<Center w="100%" h="100%">
|
<Center w="100%" h="100%">
|
||||||
|
|||||||
Reference in New Issue
Block a user