Refactor status component to use title instead of lastDeploymentInfo

This commit is contained in:
Andras Bacsai
2024-10-22 10:58:23 +02:00
parent 028a0bf513
commit 388929be30
6 changed files with 11 additions and 11 deletions

View File

@@ -165,10 +165,10 @@
<div class="flex gap-2 items-center"
wire:poll.{{ $server->settings->sentinel_push_interval_seconds }}s="checkSyncStatus">
@if ($server->isSentinelLive())
<x-status.running status="In-sync" noLoading />
<x-status.running status="In sync" noLoading title="{{$server->sentinel_updated_at}}" />
<x-forms.button wire:click='restartSentinel'>Restart</x-forms.button>
@else
<x-status.stopped status="Out-of-sync" noLoading />
<x-status.stopped status="Out of sync" noLoading title="{{$server->sentinel_updated_at}}" />
<x-forms.button wire:click='restartSentinel'>Sync</x-forms.button>
@endif
</div>