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.

fix: add Update button for locked environment variable comments

Andras Bacsaic8558b5f7885
diff --git a/resources/views/livewire/project/shared/environment-variable/show.blade.php b/resources/views/livewire/project/shared/environment-variable/show.blade.php
index 43eb883354..b41d223cec 100644
--- a/resources/views/livewire/project/shared/environment-variable/show.blade.php
+++ b/resources/views/livewire/project/shared/environment-variable/show.blade.php
@@ -23,7 +23,7 @@
</div>
@can('update', $this->env)
<div class="w-full">
- <x-forms.input instantSave id="comment" label="Comment (Optional)"
+ <x-forms.input id="comment" label="Comment (Optional)"
helper="Add a note to document what this environment variable is used for." maxlength="256" />
</div>
<div class="flex flex-col w-full gap-3">
@@ -71,6 +71,17 @@
@endif
</div>
</div>
+ <div class="flex w-full justify-end gap-2">
+ <x-forms.button type="submit">Update</x-forms.button>
+ @can('delete', $this->env)
+ <x-modal-confirmation title="Confirm Environment Variable Deletion?" isErrorButton
+ buttonTitle="Delete" submitAction="delete" :actions="['The selected environment variable will be permanently deleted.']"
+ confirmationText="{{ $env->key }}" buttonFullWidth="true"
+ confirmationLabel="Please confirm the execution of the actions by entering the Environment Variable Name below"
+ shortConfirmationLabel="Environment Variable Name" :confirmWithPassword="false"
+ step2ButtonText="Permanently Delete" />
+ @endcan
+ </div>
@else
<div class="flex flex-col w-full gap-3">
<div class="flex flex-wrap w-full items-center gap-4">