2023-06-15 12:18:49 +00:00
|
|
|
<div>
|
2023-06-16 11:13:09 +00:00
|
|
|
<div class="flex items-end gap-2 pb-6 ">
|
2023-06-22 07:38:44 +00:00
|
|
|
<h2>Private Key</h2>
|
2024-03-21 13:30:35 +00:00
|
|
|
<x-slide-over fullScreen closeWithX>
|
|
|
|
|
<x-slot:title>New Team</x-slot:title>
|
|
|
|
|
<x-slot:content>
|
|
|
|
|
<livewire:security.private-key.create />
|
|
|
|
|
</x-slot:content>
|
|
|
|
|
<button @click="slideOverOpen=true" class="button">+
|
|
|
|
|
Add</button>
|
|
|
|
|
</x-slide-over>
|
2023-06-16 11:13:09 +00:00
|
|
|
<x-forms.button wire:click.prevent='checkConnection'>
|
|
|
|
|
Check connection
|
|
|
|
|
</x-forms.button>
|
2023-06-15 12:18:49 +00:00
|
|
|
</div>
|
2023-06-16 11:13:09 +00:00
|
|
|
|
|
|
|
|
<div class="flex flex-col gap-2 pb-6">
|
2023-06-15 12:18:49 +00:00
|
|
|
@if (data_get($server, 'privateKey.uuid'))
|
2023-06-16 11:13:09 +00:00
|
|
|
<div>
|
|
|
|
|
Currently attached Private Key:
|
2023-12-07 18:06:32 +00:00
|
|
|
<a
|
|
|
|
|
href="{{ route('security.private-key.show', ['private_key_uuid' => data_get($server, 'privateKey.uuid')]) }}">
|
2023-06-16 11:13:09 +00:00
|
|
|
<button class="text-white btn-link">{{ data_get($server, 'privateKey.name') }}</button>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2023-06-15 12:18:49 +00:00
|
|
|
@else
|
2023-06-16 10:35:40 +00:00
|
|
|
<div class="">No private key attached.</div>
|
2023-06-15 12:18:49 +00:00
|
|
|
@endif
|
2023-06-16 11:13:09 +00:00
|
|
|
|
2023-06-15 12:18:49 +00:00
|
|
|
</div>
|
2023-09-09 13:30:46 +00:00
|
|
|
<h3 class="pb-4">Choose another Key</h3>
|
|
|
|
|
<div class="grid grid-cols-3 gap-2">
|
2023-07-25 12:43:49 +00:00
|
|
|
@forelse ($privateKeys as $private_key)
|
2023-09-09 13:30:46 +00:00
|
|
|
<x-forms.button class="flex flex-col box" wire:click='setPrivateKey({{ $private_key->id }})'>
|
|
|
|
|
<div>{{ $private_key->name }}</div>
|
|
|
|
|
<div class="text-xs">{{ $private_key->description }}</div>
|
|
|
|
|
</x-forms.button>
|
2023-07-25 12:43:49 +00:00
|
|
|
@empty
|
2024-03-21 13:30:35 +00:00
|
|
|
<div>No private keys found. </div>
|
2023-07-25 12:43:49 +00:00
|
|
|
@endforelse
|
|
|
|
|
</div>
|
2023-05-03 10:38:57 +00:00
|
|
|
</div>
|