diff --git a/resources/views/components/modal-confirmation.blade.php b/resources/views/components/modal-confirmation.blade.php index 0d185782f..1c82614a6 100644 --- a/resources/views/components/modal-confirmation.blade.php +++ b/resources/views/components/modal-confirmation.blade.php @@ -11,6 +11,7 @@ 'content' => null, 'checkboxes' => [], 'actions' => [], + 'warningMessage' => null, 'confirmWithText' => true, 'confirmationText' => 'Confirm Deletion', 'confirmationLabel' => 'Please confirm the execution of the actions by entering the Name below', @@ -228,7 +229,7 @@
The following actions will be performed:
diff --git a/resources/views/livewire/server/proxy.blade.php b/resources/views/livewire/server/proxy.blade.php index db2fd2827..aa6b9b7cd 100644 --- a/resources/views/livewire/server/proxy.blade.php +++ b/resources/views/livewire/server/proxy.blade.php @@ -4,26 +4,26 @@
@if ($selectedProxy !== 'NONE')
-
-

Configuration

- @if ($server->proxy->status === 'exited' || $server->proxy->status === 'removing') - Switch - Proxy - @else - Switch Proxy - @endif - Save -
-
- - Before switching proxies, please read this. -
-

Advanced

-
+
+

Configuration

+ @if ($server->proxy->status === 'exited' || $server->proxy->status === 'removing') + @can('update', $server) + + + @endcan + @else + Switch Proxy + @endif + Save +
+
Configure your proxy settings and advanced options.
+

Advanced

+
@endif
- @if ($server->proxyType() === ProxyTypes::TRAEFIK->value) -

Traefik

- @elseif ($server->proxyType() === 'CADDY') -

Caddy

- @endif + @php + $proxyTitle = $server->proxyType() === ProxyTypes::TRAEFIK->value ? 'Traefik (Coolify Proxy)' : 'Caddy (Coolify Proxy)'; + @endphp + @if ($server->proxyType() === ProxyTypes::TRAEFIK->value || $server->proxyType() === 'CADDY') +
+

{{ $proxyTitle }}

+ @if($proxySettings) + @can('update', $server) + + + @endcan + @endif +
+ @endif @if ( $server->proxy->last_applied_settings && $server->proxy->last_saved_settings !== $server->proxy->last_applied_settings) @@ -53,26 +72,12 @@
@if ($proxySettings) -
- - @can('update', $server) - - - @endcan -
+
+ +
@endif