Skip to content

Commit

Permalink
Refactor server resources view to add loading indicators for managed …
Browse files Browse the repository at this point in the history
…and unmanaged containers
  • Loading branch information
andrasbacsai committed Oct 21, 2024
1 parent 3b12d63 commit a1d35de
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions resources/views/livewire/server/resources.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,25 @@
<x-forms.button wire:click="refreshStatus">Refresh</x-forms.button>
</div>
<div>Here you can find all resources that are managed by Coolify.</div>
<div class="flex flex-row gap-4 py-10">
<div class="flex flex-row gap-4 py-10">
<div @class([
'box-without-bg cursor-pointer bg-coolgray-100 text-white w-full text-center items-center justify-center',
'bg-coollabs' => $activeTab === 'managed',
]) wire:click="loadManagedContainers">
Managed</div>
Managed
<div class="flex flex-col items-center justify-center">
<x-loading wire:loading wire:target="loadManagedContainers" />
</div>
</div>
<div @class([
'box-without-bg cursor-pointer bg-coolgray-100 text-white w-full text-center items-center justify-center',
'bg-coollabs' => $activeTab === 'unmanaged',
]) wire:click="loadUnmanagedContainers">
Unmanaged</div>
Unmanaged
<div class="flex flex-col items-center justify-center">
<x-loading wire:loading wire:target="loadUnmanagedContainers" />
</div>
</div>
</div>
</div>
@if ($containers->count() > 0)
Expand Down

0 comments on commit a1d35de

Please sign in to comment.