V2 should be able to see connection action now

This commit is contained in:
Carter 2025-04-09 14:28:26 -06:00
parent 318975b649
commit 3685478089
3 changed files with 3 additions and 3 deletions

View file

@ -48,9 +48,7 @@ const useStyles = makeStyles((theme: Theme) => {
marginBottom: theme.spacing(1.5),
},
card: {
// padding: theme.spacing(1),
margin: theme.spacing(1),
},
rowHover: {
cursor: "pointer",

View file

@ -195,6 +195,7 @@ export default function DeviceActions(props: Props) {
const isWifi = device.settings.platform === pond.DevicePlatform.DEVICE_PLATFORM_PHOTON;
// const isShareLink = isShareableLink(match.params.deviceID);
const isShareLink = false
const isV2 = device.settings.platform >= pond.DevicePlatform.DEVICE_PLATFORM_V2_CELLULAR
return (
<Menu
@ -274,7 +275,7 @@ export default function DeviceActions(props: Props) {
<ListItemText secondary="Resume Data" />
</MenuItem>
)}
{isWifi && canWrite && (
{(isWifi || isV2) && canWrite && (
<MenuItem onClick={() => openDialog("isConnectionDialogOpen")} dense>
<ListItemIcon>
<WifiIcon />

View file

@ -61,6 +61,7 @@ const useStyles = makeStyles((theme: Theme) => ({
})
},
sideMenuOnClosed: {
pointerEvents: "none",
transition: theme.transitions.create(["width", "z-index", "opacity"], {
easing: theme.transitions.easing.sharp,
duration: theme.transitions.duration.leavingScreen