2023-05-23 08:15:12 +00:00
|
|
|
<div x-data="{ deleteEnvironment: false }">
|
|
|
|
<x-naked-modal show="deleteEnvironment" message='Are you sure you would like to delete this environment?' />
|
|
|
|
@if ($resource_count > 0)
|
2023-05-25 12:05:44 +00:00
|
|
|
<x-forms.button tooltip="First delete all resources." disabled>
|
2023-05-23 08:15:12 +00:00
|
|
|
Delete
|
2023-05-25 12:05:44 +00:00
|
|
|
</x-forms.button>
|
2023-05-23 08:15:12 +00:00
|
|
|
@else
|
2023-05-25 12:05:44 +00:00
|
|
|
<x-forms.button x-on:click.prevent="deleteEnvironment = true">
|
2023-05-23 08:15:12 +00:00
|
|
|
Delete
|
2023-05-25 12:05:44 +00:00
|
|
|
</x-forms.button>
|
2023-05-23 08:15:12 +00:00
|
|
|
@endif
|
|
|
|
</div>
|