mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-18 15:20:40 +00:00
Add localhost hint for proxy restart logs
When restarting the proxy on localhost (server id 0), shows a warning banner in the logs sidebar explaining that the connection may be temporarily lost and to refresh the browser if logs stop updating. Also cleans up notification noise by commenting out intermediate status notifications (restarting, starting, stopping) that were redundant with the visual status indicators. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -75,7 +75,7 @@ class Navbar extends Component
|
||||
|
||||
// Always use background job for all servers
|
||||
RestartProxyJob::dispatch($this->server);
|
||||
$this->dispatch('info', 'Proxy restart initiated.');
|
||||
// $this->dispatch('info', 'Proxy restart initiated.');
|
||||
|
||||
// Reset the flag after a short delay to allow future restarts
|
||||
$this->restartInitiated = false;
|
||||
@@ -171,15 +171,15 @@ class Navbar extends Component
|
||||
}
|
||||
break;
|
||||
case 'stopping':
|
||||
$this->dispatch('info', 'Proxy is stopping.');
|
||||
// $this->dispatch('info', 'Proxy is stopping.');
|
||||
$this->lastNotifiedStatus = $this->proxyStatus;
|
||||
break;
|
||||
case 'starting':
|
||||
$this->dispatch('info', 'Proxy is starting.');
|
||||
// $this->dispatch('info', 'Proxy is starting.');
|
||||
$this->lastNotifiedStatus = $this->proxyStatus;
|
||||
break;
|
||||
case 'restarting':
|
||||
$this->dispatch('info', 'Proxy is restarting.');
|
||||
// $this->dispatch('info', 'Proxy is restarting.');
|
||||
$this->lastNotifiedStatus = $this->proxyStatus;
|
||||
break;
|
||||
case 'error':
|
||||
|
||||
Reference in New Issue
Block a user