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.

confirm init script

ayntk-aia97ccd206c2d
diff --git a/resources/views/livewire/project/database/init-script.blade.php b/resources/views/livewire/project/database/init-script.blade.php
index f3f699791c..41584c633d 100644
--- a/resources/views/livewire/project/database/init-script.blade.php
+++ b/resources/views/livewire/project/database/init-script.blade.php
@@ -2,9 +2,20 @@
<div class="flex items-end gap-2">
<x-forms.input id="filename" label="Filename" />
<x-forms.button type="submit">Save</x-forms.button>
- <x-modal-confirmation isErrorButton buttonTitle="Delete">
- This script will be deleted. It is not reversible. <br>Please think again.
- </x-modal-confirmation>
+ <x-modal-confirmation
+ isErrorButton
+ title="Confirm init-script deletion?"
+ buttonTitle="Delete"
+ submitAction="delete"
+ :actions="[
+ 'The init-script of this database will be permanently deleted.'
+ ]"
+ confirmationText="{{ $filename }}"
+ confirmationLabel="Please confirm the execution of the actions by entering the init-script name below"
+ shortConfirmationLabel="Init-script Name"
+ :confirmWithPassword=false
+ step2ButtonText="Permanently Delete Init-script"
+ />
</div>
<x-forms.textarea id="content" label="Content" />
</form>