Skip to content

Commit

Permalink
fix: Make timer button show only to admins (#2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeDemal authored Sep 29, 2024
1 parent 4bba516 commit d4765c1
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/widgets/dnshole/DnsHoleControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,18 +279,20 @@ function DnsHoleControlsWidgetTile({ widget }: DnsHoleControlsWidgetProps) {
{t(dnsHole.status)}
</Badge>
</UnstyledButton>
<ActionIcon
size={20}
radius="xl"
top="2.67px"
variant="default"
onClick={() => {
setAppId(app.id);
open();
}}
>
<IconClockPause size={20} color="red" />
</ActionIcon>
{enableControls && (
<ActionIcon
size={20}
radius="xl"
top="2.67px"
variant="default"
onClick={() => {
setAppId(app.id);
open();
}}
>
<IconClockPause size={20} color="red" />
</ActionIcon>
)}
</Flex>
</Stack>
</Group>
Expand Down

0 comments on commit d4765c1

Please sign in to comment.