mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-03 03:55:56 +01:00
fix: Make timer button show only to admins (#2143)
This commit is contained in:
@@ -279,6 +279,7 @@ function DnsHoleControlsWidgetTile({ widget }: DnsHoleControlsWidgetProps) {
|
|||||||
{t(dnsHole.status)}
|
{t(dnsHole.status)}
|
||||||
</Badge>
|
</Badge>
|
||||||
</UnstyledButton>
|
</UnstyledButton>
|
||||||
|
{enableControls && (
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
size={20}
|
size={20}
|
||||||
radius="xl"
|
radius="xl"
|
||||||
@@ -291,6 +292,7 @@ function DnsHoleControlsWidgetTile({ widget }: DnsHoleControlsWidgetProps) {
|
|||||||
>
|
>
|
||||||
<IconClockPause size={20} color="red" />
|
<IconClockPause size={20} color="red" />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
|
)}
|
||||||
</Flex>
|
</Flex>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Group>
|
</Group>
|
||||||
|
|||||||
Reference in New Issue
Block a user