refactor(navbar): simplify proxy status handling and enhance loading indicators for better user experience

This commit is contained in:
Andras Bacsai committed 2025-06-13 07:16:44 +02:00
1 parent 9ad2304229
commit c3dd24ff43
2 files changed
+19 -34

No files matched your search

-12
View File
@@ -116,23 +116,11 @@ class Navbar extends Component
switch ($this->proxyStatus) {
case 'running':
// $this->dispatch('success', 'Proxy is running.');
$this->loadProxyConfiguration();
break;
case 'restarting':
$this->dispatch('info', 'Initiating proxy restart.');
break;
// case 'exited':
// if (! $forceStop) {
// $this->dispatch('info', 'Proxy is stopped manually.<br>Starting in a moment.');
// }
// break;
case 'starting':
// do nothing
break;
case 'stopping':
// do nothing
break;
default:
break;
}