diff --git a/src/components/devices/DeviceStatusPage.tsx b/src/components/devices/DeviceStatusPage.tsx index 64fc4f2..91fb6a3 100644 --- a/src/components/devices/DeviceStatusPage.tsx +++ b/src/components/devices/DeviceStatusPage.tsx @@ -204,15 +204,18 @@ export default function DeviceStatusPage({ true, 'switchResult', ); + controllerRef.current.setIsControlled(false); setIsModalOpen(false); }; const handleCancel = () => { + controllerRef.current?.sendPermissionRequest( false, 'switchResult', ); + controllerRef.current.setIsControlled(true); setIsModalOpen(false); };