From d4765c1e7fdccc07451cc819ff83da68e22b0d60 Mon Sep 17 00:00:00 2001 From: SeDemal Date: Sun, 29 Sep 2024 22:24:21 +0200 Subject: [PATCH] fix: Make timer button show only to admins (#2143) --- src/widgets/dnshole/DnsHoleControls.tsx | 26 +++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/widgets/dnshole/DnsHoleControls.tsx b/src/widgets/dnshole/DnsHoleControls.tsx index 8a543e610..236fa129c 100644 --- a/src/widgets/dnshole/DnsHoleControls.tsx +++ b/src/widgets/dnshole/DnsHoleControls.tsx @@ -279,18 +279,20 @@ function DnsHoleControlsWidgetTile({ widget }: DnsHoleControlsWidgetProps) { {t(dnsHole.status)} - { - setAppId(app.id); - open(); - }} - > - - + {enableControls && ( + { + setAppId(app.id); + open(); + }} + > + + + )}