2024-03-30 17:58:41 +00:00
|
|
|
<div x-init="$wire.loadPublicKey()">
|
2024-06-07 09:01:10 +00:00
|
|
|
<x-slot:title>
|
|
|
|
Private Key | Coolify
|
|
|
|
</x-slot>
|
2024-01-07 15:23:41 +00:00
|
|
|
<x-security.navbar />
|
|
|
|
<div x-data="{ showPrivateKey: false }">
|
|
|
|
<form class="flex flex-col gap-2" wire:submit='changePrivateKey'>
|
|
|
|
<div class="flex items-end gap-2">
|
|
|
|
<h2>Private Key</h2>
|
|
|
|
<x-forms.button type="submit">
|
|
|
|
Save
|
|
|
|
</x-forms.button>
|
2024-01-31 13:18:51 +00:00
|
|
|
@if (data_get($private_key, 'id') > 0)
|
2024-03-20 11:54:06 +00:00
|
|
|
<x-modal-confirmation isErrorButton buttonTitle="Delete">
|
2024-01-31 15:14:12 +00:00
|
|
|
This private key will be deleted. It is not reversible. <br>Please think again.
|
2024-03-20 11:54:06 +00:00
|
|
|
</x-modal-confirmation>
|
2024-01-07 15:23:41 +00:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<x-forms.input id="private_key.name" label="Name" required />
|
|
|
|
<x-forms.input id="private_key.description" label="Description" />
|
|
|
|
<div>
|
|
|
|
<div class="flex items-end gap-2 py-2 ">
|
|
|
|
<div class="pl-1 ">Public Key</div>
|
|
|
|
</div>
|
|
|
|
<x-forms.input readonly id="public_key" />
|
|
|
|
<div class="flex items-end gap-2 py-2 ">
|
|
|
|
<div class="pl-1 ">Private Key <span class='text-helper'>*</span></div>
|
2024-03-30 17:58:41 +00:00
|
|
|
<div class="text-xs underline cursor-pointer dark:text-white" x-cloak x-show="!showPrivateKey"
|
2024-01-07 15:23:41 +00:00
|
|
|
x-on:click="showPrivateKey = true">
|
|
|
|
Edit
|
|
|
|
</div>
|
2024-03-30 17:58:41 +00:00
|
|
|
<div class="text-xs underline cursor-pointer dark:text-white" x-cloak x-show="showPrivateKey"
|
2024-01-07 15:23:41 +00:00
|
|
|
x-on:click="showPrivateKey = false">
|
|
|
|
Hide
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-31 13:18:51 +00:00
|
|
|
@if (data_get($private_key, 'is_git_related'))
|
2024-01-07 15:23:41 +00:00
|
|
|
<div class="w-48">
|
|
|
|
<x-forms.checkbox id="private_key.is_git_related" disabled label="Is used by a Git App?" />
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<div x-cloak x-show="!showPrivateKey">
|
|
|
|
<x-forms.input allowToPeak="false" type="password" rows="10" id="private_key.private_key"
|
|
|
|
required disabled />
|
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="showPrivateKey">
|
|
|
|
<x-forms.textarea rows="10" id="private_key.private_key" required />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|