Refactor proxy type retrieval in Server and Proxy classes

This commit is contained in:
Andras Bacsai
2024-03-12 12:45:55 +01:00
parent 1835a91467
commit 4d181eef8e
4 changed files with 10 additions and 9 deletions

View File

@@ -16,10 +16,10 @@
</p>
</x-slot:modalBody>
</x-modal>
@if ($server->isFunctional() && data_get($server, 'proxy.type') !== 'NONE')
@if ($server->isFunctional() && $server->proxyType() !== 'NONE')
@if (data_get($server, 'proxy.status') === 'running')
<div class="flex gap-4">
@if ($currentRoute === 'server.proxy' && $traefikDashboardAvailable)
@if ($currentRoute === 'server.proxy' && $traefikDashboardAvailable && $server->proxyType() === 'TRAEFIK_V2')
<button>
<a target="_blank" href="http://{{ $serverIp }}:8080">
Traefik Dashboard