Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

merge env save button

ayntk-aif6cb39732af4
diff --git a/resources/views/livewire/project/shared/environment-variable/all.blade.php b/resources/views/livewire/project/shared/environment-variable/all.blade.php
index 649d59a20d..d4e7034998 100644
--- a/resources/views/livewire/project/shared/environment-variable/all.blade.php
+++ b/resources/views/livewire/project/shared/environment-variable/all.blade.php
@@ -48,16 +48,15 @@
@endforeach
@endif
@else
- <form wire:submit='saveVariables(false)' class="flex flex-col gap-2">
+ <form wire:submit='saveVariables' class="flex flex-col gap-2">
<x-forms.textarea rows="10" class="whitespace-pre-wrap" id="variables"></x-forms.textarea>
- <x-forms.button type="submit" class="btn btn-primary">Save</x-forms.button>
- </form>
- @if ($showPreview)
- <form wire:submit='saveVariables(true)' class="flex flex-col gap-2">
+
+ @if ($showPreview)
<x-forms.textarea rows="10" class="whitespace-pre-wrap" label="Preview Environment Variables"
id="variablesPreview"></x-forms.textarea>
- <x-forms.button type="submit" class="btn btn-primary">Save</x-forms.button>
- </form>
- @endif
+ @endif
+
+ <x-forms.button type="submit" class="btn btn-primary">Save Environment Variables</x-forms.button>
+ </form>
@endif
-</div>
+</div>
\ No newline at end of file