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 step 2 button

peaklabs-dev7da9b28c4894
diff --git a/resources/views/components/modal-confirmation.blade.php b/resources/views/components/modal-confirmation.blade.php
index 36af1c3a24..e31c039f88 100644
--- a/resources/views/components/modal-confirmation.blade.php
+++ b/resources/views/components/modal-confirmation.blade.php
@@ -279,9 +279,16 @@
@endif
<div class="flex flex-wrap gap-2 justify-between mt-4">
- <x-forms.button @click="step--" class="w-24 dark:bg-coolgray-200 dark:hover:bg-coolgray-300">
- Back
- </x-forms.button>
+ @if (!empty($checkboxes))
+ <x-forms.button @click="step--" class="w-24 dark:bg-coolgray-200 dark:hover:bg-coolgray-300">
+ Back
+ </x-forms.button>
+ @else
+ <x-forms.button @click="modalOpen = false; resetModal()"
+ class="w-24 dark:bg-coolgray-200 dark:hover:bg-coolgray-300">
+ Cancel
+ </x-forms.button>
+ @endif
<x-forms.button
x-bind:disabled="!disableTwoStepConfirmation && confirmWithText && userConfirmationText !== confirmationText"
class="w-auto" isError