fix: Make timer button show only to admins (#2143)

This commit is contained in:
SeDemal
2024-09-29 22:24:21 +02:00
committed by GitHub
parent 4bba516fdf
commit d4765c1e7f

View File

@@ -279,18 +279,20 @@ function DnsHoleControlsWidgetTile({ widget }: DnsHoleControlsWidgetProps) {
{t(dnsHole.status)} {t(dnsHole.status)}
</Badge> </Badge>
</UnstyledButton> </UnstyledButton>
<ActionIcon {enableControls && (
size={20} <ActionIcon
radius="xl" size={20}
top="2.67px" radius="xl"
variant="default" top="2.67px"
onClick={() => { variant="default"
setAppId(app.id); onClick={() => {
open(); setAppId(app.id);
}} open();
> }}
<IconClockPause size={20} color="red" /> >
</ActionIcon> <IconClockPause size={20} color="red" />
</ActionIcon>
)}
</Flex> </Flex>
</Stack> </Stack>
</Group> </Group>