From 7af972507672dabed256ea5b5e2031d2055557ba Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Wed, 28 May 2025 11:49:04 +0200 Subject: [PATCH] feat(destination): update confirmation modal text and add persistent storage warning for server deployment --- .../project/shared/destination.blade.php | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/resources/views/livewire/project/shared/destination.blade.php b/resources/views/livewire/project/shared/destination.blade.php index 97e978e7a..6c0aa1d68 100644 --- a/resources/views/livewire/project/shared/destination.blade.php +++ b/resources/views/livewire/project/shared/destination.blade.php @@ -63,13 +63,14 @@ Stop @endif - + shortConfirmationLabel="Server Name" step3ButtonText="Remove application from server" /> @endforeach @@ -77,7 +78,24 @@ @if ($resource->getMorphClass() === 'App\Models\Application' && data_get($resource, 'build_pack') !== 'dockercompose')
- @if (count($networks) > 0) + @if ($resource->persistentStorages()->count() > 0) +

Add another server

+
+
+ +
+

Cannot add additional + servers

+

+ This application has persistent storage volumes configured. Applications with persistent + storage cannot be deployed to multiple servers as the storage would not be accessible + across different servers. +

+
+
+
+ @elseif (count($networks) > 0)

Add another server

@foreach ($networks as $network)