fix
This commit is contained in:
@@ -79,15 +79,6 @@
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
function changePasswordFieldType(id) {
|
||||
const input = document.getElementById(id);
|
||||
if (input.type === 'password') {
|
||||
input.type = 'text';
|
||||
} else {
|
||||
input.type = 'password';
|
||||
}
|
||||
}
|
||||
|
||||
function copyToClipboard(text) {
|
||||
navigator.clipboard.writeText(text);
|
||||
Livewire.emit('message', 'Copied to clipboard.');
|
||||
@@ -108,18 +99,17 @@
|
||||
if (message) Toaster.success(message)
|
||||
})
|
||||
</script>
|
||||
@else
|
||||
<script>
|
||||
function changePasswordFieldType(id) {
|
||||
const input = document.getElementById(id);
|
||||
if (input.type === 'password') {
|
||||
input.type = 'text';
|
||||
} else {
|
||||
input.type = 'password';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@endauth
|
||||
<script>
|
||||
function changePasswordFieldType(id) {
|
||||
const input = document.getElementById(id);
|
||||
if (input.type === 'password') {
|
||||
input.type = 'text';
|
||||
} else {
|
||||
input.type = 'password';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
Delete
|
||||
</x-forms.button>
|
||||
@endif
|
||||
@if (!$server->settings->is_validated)
|
||||
@if (!$server->settings->is_reachable)
|
||||
<div class="w-full">
|
||||
<x-forms.button isHighlighted wire:click.prevent='validateServer'>
|
||||
Validate Server
|
||||
@@ -45,14 +45,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if ($server->settings->is_validated)
|
||||
@if ($server->settings->is_reachable)
|
||||
<h3 class="pt-8 pb-4">Quick Actions</h3>
|
||||
<div class="flex items-center gap-2">
|
||||
<x-forms.button wire:click.prevent='validateServer'>
|
||||
Check Server Details
|
||||
</x-forms.button>
|
||||
<x-forms.button wire:click.prevent='installDocker'>
|
||||
@if ($server->settings->is_docker_installed)
|
||||
@if ($server->settings->is_usable)
|
||||
Reconfigure Docker Engine
|
||||
@else
|
||||
Install Docker Engine
|
||||
@@ -71,9 +71,6 @@
|
||||
@isset($dockerVersion)
|
||||
<p>Docker Engine {{ $dockerVersion }}</p>
|
||||
@endisset
|
||||
@isset($dockerComposeVersion)
|
||||
<p>Compose: {{ $dockerComposeVersion }}</p>
|
||||
@endisset
|
||||
</div>
|
||||
@endisset
|
||||
</form>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<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)
|
||||
@if ($server->settings->is_reachable)
|
||||
@if ($server->extra_attributes->proxy_type)
|
||||
<div x-init="$wire.checkProxySettingsInSync">
|
||||
<div wire:loading wire:target="checkProxySettingsInSync">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div>
|
||||
@if ($server->settings->is_validated)
|
||||
@if ($server->settings->is_reachable)
|
||||
@if ($server->extra_attributes->proxy_status === 'running')
|
||||
<div class="flex gap-4">
|
||||
<div class="group">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div>
|
||||
@if ($server->settings->is_validated)
|
||||
@if ($server->settings->is_reachable)
|
||||
<div wire:poll.10000ms="proxyStatus" x-init="$wire.proxyStatus">
|
||||
@if ($server->extra_attributes->proxy_status === 'running')
|
||||
<x-status.running />
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
href="{{ route('server.show', ['server_uuid' => data_get($server, 'uuid')]) }}">
|
||||
<div class="group-hover:text-white">
|
||||
<div>{{ $server->name }}</div>
|
||||
@if (!$server->settings->is_validated)
|
||||
@if (!$server->settings->is_reachable)
|
||||
<div class="text-xs text-error">not validated</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user