Skip to content

Commit 8ea2cb0

Browse files
committed
Add to menu bar
1 parent d52d179 commit 8ea2cb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

site/src/components/Navbar/NavbarView.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ const ProxyMenu: FC<{ proxyContextValue: ProxyContextValue }> = ({
189189
const buttonRef = useRef<HTMLButtonElement>(null)
190190
const [isOpen, setIsOpen] = useState(false)
191191
const selectedProxy = proxyContextValue.proxy.proxy
192+
const refreshLatencies = proxyContextValue.refetchProxyLatencies
192193
const closeMenu = () => setIsOpen(false)
193194
const navigate = useNavigate()
194195

@@ -293,6 +294,9 @@ const ProxyMenu: FC<{ proxyContextValue: ProxyContextValue }> = ({
293294
>
294295
Proxy settings
295296
</MenuItem>
297+
<MenuItem sx={{ fontSize: 14 }} onClick={refreshLatencies}>
298+
Refresh Latencies
299+
</MenuItem>
296300
</Menu>
297301
</>
298302
)

0 commit comments

Comments
 (0)