added device actions to support page

This commit is contained in:
Carter 2025-05-13 11:46:44 -06:00
parent e588feff92
commit a9ae499b81
2 changed files with 69 additions and 3 deletions

View file

@ -510,10 +510,14 @@ export default function DeviceActions(props: Props) {
);
};
const showSupport = () => {
return user.allowedTo("provision") && !location.pathname.includes("support")
}
const buttons = () => {
return (
<React.Fragment>
{user.allowedTo("provision") && <Tooltip title="Support">
{showSupport() && <Tooltip title="Support">
<IconButton onClick={() => navigate("support", { state: {device: device, devicePageData: devicePageData }})}>
<Visibility />
</IconButton>