available positions is known to device actions in support page

This commit is contained in:
Carter 2025-05-13 11:48:53 -06:00
parent a9ae499b81
commit 61b93579cb
2 changed files with 1 additions and 13 deletions

View file

@ -441,16 +441,6 @@ export default function DevicePage() {
<SmartBreadcrumb deviceName={device.name()} /> <SmartBreadcrumb deviceName={device.name()} />
</Grid> </Grid>
<Grid> <Grid>
<AddComponentManualDialog
device={device.id()}
open={addComponentManualDialogOpen}
onClose={() => setAddComponentManualDialogOpen(false)}
/>
{user.hasFeature("developer") === true &&
<Button onClick={() => setAddComponentManualDialogOpen(true)}>
Manual Comp
</Button>
}
<DeviceActions <DeviceActions
device={device} device={device}
isPaused={false} isPaused={false}
@ -469,8 +459,6 @@ export default function DevicePage() {
<DeviceOverview <DeviceOverview
device={device} device={device}
components={[...components.values()]} components={[...components.values()]}
// components={[]}
// components={components}
usage={getUsage()} usage={getUsage()}
loading={loading} loading={loading}
groupID={parseInt(groupID)} groupID={parseInt(groupID)}

View file

@ -195,7 +195,7 @@ export default function DeviceSupport() {
preferences={devicePageData.preferences} preferences={devicePageData.preferences}
toggleNotificationPreference={toggleNotificationPreference} toggleNotificationPreference={toggleNotificationPreference}
refreshCallback={() => {}} refreshCallback={() => {}}
availablePositions={new Map()} availablePositions={FindAvailablePositions(devicePageData.components, device.settings.product).availability}
availableOffsets={new Map()} availableOffsets={new Map()}
components={[...devicePageData.components.map(comp => Component.any(comp))]} components={[...devicePageData.components.map(comp => Component.any(comp))]}
interactions={devicePageData.interactions.map(inter => Interaction.any(inter))} interactions={devicePageData.interactions.map(inter => Interaction.any(inter))}