Skip to content

Commit f3ec4ca

Browse files
committed
refactor: Improve modal confirmation titles and button labels
1 parent 174923d commit f3ec4ca

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

resources/views/livewire/project/service/configuration.blade.php

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
@endif
7777
@if ($application->fqdn)
7878
<span class="flex gap-1 text-xs">{{ Str::limit($application->fqdn, 60) }}
79-
<x-modal-input title="Edit Domains">
79+
<x-modal-input title="Edit Domains" closeOutside="false">
8080
<x-slot:content>
8181
<span class="cursor-pointer">
8282
<svg xmlns="http://www.w3.org/2000/svg"
@@ -107,15 +107,14 @@ class="w-4 h-4 dark:text-warning text-coollabs"
107107
Settings
108108
</a>
109109
@if (str($application->status)->contains('running'))
110-
<x-modal-confirmation
111-
title="Confirm Service Application Restart?"
112-
buttonTitle="Restart"
113-
submitAction="restartApplication({{ $application->id }})"
114-
:actions="['The selected service application will be unavailable during the restart.', 'If the service application is currently in use data could be lost.']"
115-
:confirmWithText="false"
116-
:confirmWithPassword="false"
117-
step2ButtonText="Restart Service Container"
118-
/>
110+
<x-modal-confirmation title="Confirm Service Application Restart?"
111+
buttonTitle="Restart"
112+
submitAction="restartApplication({{ $application->id }})" :actions="[
113+
'The selected service application will be unavailable during the restart.',
114+
'If the service application is currently in use data could be lost.',
115+
]"
116+
:confirmWithText="false" :confirmWithPassword="false"
117+
step2ButtonText="Restart Service Container" />
119118
@endif
120119
</div>
121120
</div>
@@ -155,15 +154,13 @@ class="w-4 h-4 dark:text-warning text-coollabs"
155154
Settings
156155
</a>
157156
@if (str($database->status)->contains('running'))
158-
<x-modal-confirmation
159-
title="Confirm Service Database Restart?"
160-
buttonTitle="Restart"
161-
submitAction="restartDatabase({{ $database->id }})"
162-
:actions="['This service database will be unavailable during the restart.', 'If the service database is currently in use data could be lost.']"
163-
:confirmWithText="false"
164-
:confirmWithPassword="false"
165-
step2ButtonText="Restart Database"
166-
/>
157+
<x-modal-confirmation title="Confirm Service Database Restart?"
158+
buttonTitle="Restart" submitAction="restartDatabase({{ $database->id }})"
159+
:actions="[
160+
'This service database will be unavailable during the restart.',
161+
'If the service database is currently in use data could be lost.',
162+
]" :confirmWithText="false" :confirmWithPassword="false"
163+
step2ButtonText="Restart Database" />
167164
@endif
168165
</div>
169166
</div>
@@ -183,7 +180,8 @@ class="w-4 h-4 dark:text-warning text-coollabs"
183180
lazy />
184181
@endforeach
185182
@foreach ($databases as $database)
186-
<livewire:project.service.storage wire:key="database-{{ $database->id }}" :resource="$database" lazy />
183+
<livewire:project.service.storage wire:key="database-{{ $database->id }}" :resource="$database"
184+
lazy />
187185
@endforeach
188186
</div>
189187
<div x-cloak x-show="activeTab === 'scheduled-tasks'">

0 commit comments

Comments
 (0)