show/hide debug logs

This commit is contained in:
Andras Bacsai
2023-07-04 12:38:22 +02:00
parent c1a0fbc66f
commit c97efda49b
2 changed files with 7 additions and 1 deletions

View File

@@ -1,6 +1,10 @@
<div class="flex items-center gap-2 pb-4">
<h2>Logs</h2>
<x-forms.button wire:click.prevent="show_debug">Show Debug Logs</x-forms.button>
@if ($is_debug_enabled)
<x-forms.button wire:click.prevent="show_debug">Hide Debug Logs</x-forms.button>
@else
<x-forms.button wire:click.prevent="show_debug">Show Debug Logs</x-forms.button>
@endif
@if (data_get($application_deployment_queue, 'status') === 'in_progress' ||
data_get($application_deployment_queue, 'status') === 'queued')
<x-forms.button wire:click.prevent="cancel">Cancel deployment</x-forms.button>