diff --git a/app/Livewire/Server/Navbar.php b/app/Livewire/Server/Navbar.php index 7827f02b8..7b250fa8f 100644 --- a/app/Livewire/Server/Navbar.php +++ b/app/Livewire/Server/Navbar.php @@ -6,6 +6,7 @@ use App\Actions\Proxy\StartProxy; use App\Actions\Proxy\StopProxy; use App\Enums\ProxyTypes; +use App\Jobs\CheckTraefikVersionForServerJob; use App\Models\Server; use App\Services\ProxyDashboardCacheService; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; @@ -68,6 +69,11 @@ public function restart() $activity = StartProxy::run($this->server, force: true, restarting: true); $this->dispatch('activityMonitor', $activity->id); + + // Check Traefik version after restart to provide immediate feedback + if ($this->server->proxyType() === ProxyTypes::TRAEFIK->value) { + CheckTraefikVersionForServerJob::dispatch($this->server); + } } catch (\Throwable $e) { return handleError($e, $this); } @@ -137,9 +143,6 @@ public function showNotification() $this->dispatch('success', 'Proxy is running.'); } break; - case 'restarting': - $this->dispatch('info', 'Initiating proxy restart.'); - break; case 'exited': // Only show "Proxy has exited" notification when transitioning from running state // Don't show during normal stop/restart flows (stopping, restarting)