mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-02 11:36:01 +01:00
fix: Make timer button show only to admins (#2143)
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user