Skip to content

Commit 0b5788c

Browse files
author
Itamar Junior
committed
feat: add loading transitions and text to system update UI
1 parent 4f57b86 commit 0b5788c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

resources/views/livewire/settings/system-update.blade.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<h2 class="text-xl font-bold mb-4">System Update</h2>
88

99
@if ($updateAvailable)
10-
<div class="mb-4 p-4 bg-yellow-100 border-l-4 border-yellow-500">
10+
<div class="mb-4 p-4 bg-yellow-100 border-l-4 border-yellow-500" wire:loading.remove>
1111
<p><strong>New Version:</strong> {{ $updateAvailable['version'] }}</p>
1212
<p><strong>Title:</strong> {{ $updateAvailable['title'] }}</p>
1313
<p><strong>Description:</strong> {{ $updateAvailable['description'] }}</p>
@@ -23,7 +23,14 @@ class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded">
2323
</div>
2424
@endif
2525

26-
<div class="flex items-center justify-center mt-4" wire:loading wire:target="runUpdate">
26+
<div class="flex items-center justify-center mt-4" wire:loading wire:target="runUpdate"
27+
x-transition:enter="transition ease-out duration-300"
28+
x-transition:enter-start="opacity-0 transform scale-95"
29+
x-transition:enter-end="opacity-100 transform scale-100"
30+
x-transition:leave="transition ease-in duration-300"
31+
x-transition:leave-start="opacity-100 transform scale-100"
32+
x-transition:leave-end="opacity-0 transform scale-95">
33+
<div class="text-gray-700 font-semibold mr-8">Updating...</div>
2734
<div class="spinner">
2835
<div></div>
2936
<div></div>

0 commit comments

Comments
 (0)