This commit is contained in:
Andras Bacsai 2023-05-16 11:47:39 +02:00
parent a275ac5f41
commit 0072343e0f
2 changed files with 11 additions and 5 deletions

View File

@ -1,5 +1,6 @@
<div>
<div x-data="{ stopProxy: false }">
<x-naked-modal show="stopProxy" action="stopProxy"
message='Are you sure you would like to stop the proxy? All resources will be unavailable.' />
@if ($server->settings->is_validated)
<div class="flex items-center gap-2">
<h3>Proxy</h3>
@ -18,7 +19,8 @@
Start
</x-inputs.button>
@else
<x-inputs.button isWarning wire:click="stopProxy">Stop</x-inputs.button>
<x-inputs.button isWarning x-on:click.prevent="stopProxy = true">Stop
</x-inputs.button>
@endif
<span x-data="{ showConfiguration: false }">
<x-inputs.button isBold x-on:click.prevent="showConfiguration = !showConfiguration">Show

View File

@ -26,7 +26,9 @@
<x-inputs.button>Change</x-inputs.button>
</a>
</div>
<p>{{ $server->privateKey->name }}</p>
<a href="{{ route('private-key.show', ['private_key_uuid' => data_get($server, 'privateKey.uuid')]) }}">
<x-inputs.button>{{ data_get($server, 'privateKey.uuid') }}</x-inputs.button>
</a>
</div>
<div x-cloak x-show="activeTab === 'destinations'">
<div class="flex items-center gap-2">
@ -37,7 +39,9 @@
</div>
@if ($server->standaloneDockers->count() > 0)
@foreach ($server->standaloneDockers as $docker)
<p>Network: {{ data_get($docker, 'network') }}</p>
<a href="{{ route('destination.show', ['destination_uuid' => data_get($docker, 'uuid')]) }}">
<x-inputs.button>{{ data_get($docker, 'network') }}</x-inputs.button>
</a>
@endforeach
@else
<p>No destinations found</p>