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

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

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;
}