Skip to content

Commit f9dbc30

Browse files
committed
Feat: Use the new confirmation flow
1 parent 164a213 commit f9dbc30

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

resources/views/livewire/server/form.blade.php

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class="px-4 py-2 cursor-pointer hover:bg-gray-100 dark:hover:bg-coolgray-300 tex
188188
<div class="flex flex-wrap items-center gap-4">
189189
<div class="w-64">
190190
<x-forms.checkbox
191-
helper="Enabling force Docker Cleanup will perform the following actions:
191+
helper="Enabling Force Docker Cleanup or manually triggering a cleanup will perform the following actions:
192192
<ul class='list-disc pl-4 mt-2'>
193193
<li>Removes stopped containers manged by Coolify (as containers are none persistent, no data will be lost).</li>
194194
<li>Deletes unused images.</li>
@@ -199,9 +199,22 @@ class="px-4 py-2 cursor-pointer hover:bg-gray-100 dark:hover:bg-coolgray-300 tex
199199
</ul>"
200200
instantSave id="server.settings.force_docker_cleanup" label="Force Docker Cleanup" />
201201
</div>
202-
<x-forms.button wire:click="manualCleanup">
203-
Manually Trigger Cleanup
204-
</x-forms.button>
202+
<x-modal-confirmation
203+
title="Confirm Docker Cleanup?"
204+
buttonTitle="Trigger Docker Cleanup"
205+
submitAction="manualCleanup"
206+
:actions="[
207+
'Permanently deletes all stopped containers managed by Coolify (as containers are non-persistent, no data will be lost)',
208+
'Permanently deletes all unused images',
209+
'Clears build cache',
210+
'Removes old versions of the Coolify helper image',
211+
'Optionally permanently deletes all unused volumes (if enabled in advanced options).',
212+
'Optionally permanently deletes all unused networks (if enabled in advanced options).'
213+
]"
214+
:confirmWithText="false"
215+
:confirmWithPassword="false"
216+
step2ButtonText="Trigger Docker Cleanup"
217+
/>
205218
</div>
206219
@if ($server->settings->force_docker_cleanup)
207220
<x-forms.input placeholder="*/10 * * * *" id="server.settings.docker_cleanup_frequency"

0 commit comments

Comments
 (0)