Fix server form to dispatch 'proxyStatusUpdated' event when server is unreachable

This commit is contained in:
Andras Bacsai 2024-05-03 11:20:42 +02:00
parent b8f2066408
commit c75d779f85

View File

@ -5,7 +5,7 @@
<form wire:submit='submit'> <form wire:submit='submit'>
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<h2>Configuration</h2> <h2>Configuration</h2>
@if ($server->proxy->status === 'exited') @if ($server->proxy->status === 'exited' || $server->proxy->status === 'removing')
<x-forms.button wire:click.prevent="change_proxy">Switch Proxy</x-forms.button> <x-forms.button wire:click.prevent="change_proxy">Switch Proxy</x-forms.button>
@else @else
<x-forms.button disabled wire:click.prevent="change_proxy">Switch Proxy</x-forms.button> <x-forms.button disabled wire:click.prevent="change_proxy">Switch Proxy</x-forms.button>