From e06532d7e7265c5c4d5991ebfea8b59db0462477 Mon Sep 17 00:00:00 2001 From: ElMoribond Date: Wed, 14 Jul 2021 17:45:37 +0200 Subject: [PATCH] Improve restart from UI --- web/src/components/DialogRestart.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/components/DialogRestart.jsx b/web/src/components/DialogRestart.jsx index 506e7ebce..0561cca51 100644 --- a/web/src/components/DialogRestart.jsx +++ b/web/src/components/DialogRestart.jsx @@ -23,8 +23,9 @@ export default function DialogRestart({ show, setShow }) { while (true) { try { const response = await fetch('/api/config', { method: 'GET' }); - if (await response.status === 200) + if (await response.status === 200) { window.location.reload(); + } } catch (e) {} await delay(987);