fixed tag apis to use new context logic

This commit is contained in:
Carter 2025-05-28 10:32:19 -06:00
parent dd2d24c357
commit 6a6334da6a
4 changed files with 17 additions and 3 deletions

View file

@ -233,7 +233,7 @@ export default function DeviceOverview(props: Props) {
<StatusChip status="pending" />
</Grid>
)}
{user.allowedTo("provision") && <DeviceTags device={device} disableAdd={disableAddTag} />}
{<DeviceTags device={device} disableAdd={disableAddTag} />}
</Grid>
);
};

View file

@ -68,6 +68,7 @@ function AddDeviceTag(props: AddDeviceTagProps) {
<TagUI tag={tag} onClick={() => addTagToDevice(tag)} />
</ListItem>
));
return (
<React.Fragment>
<IconButton aria-label="add tag" onClick={() => setOpen(true)} size="small">