This commit is contained in:
Andras Bacsai
2023-06-15 15:15:27 +02:00
parent b68aabb2c9
commit c9c56c915c
4 changed files with 22 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
<x-forms.button wire:click.prevent='submit' type="submit">
Save
</x-forms.button>
@if ($destination->network !== 'coolify')
@if ($destination->server->id === 0 && $destination->network !== 'coolify')
<x-forms.button x-on:click.prevent="deleteDestination = true">
Delete
</x-forms.button>

View File

@@ -4,7 +4,7 @@
<div class="flex gap-2">
<h2>General</h2>
<x-forms.button type="submit">Save</x-forms.button>
@if ($server->id !== 0)
@if ($server->id !== 0 || config('app.env') === 'local')
<x-forms.button x-on:click.prevent="deleteServer = true">
Delete
</x-forms.button>