added device actions to support page
This commit is contained in:
parent
e588feff92
commit
a9ae499b81
2 changed files with 69 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue