ui upgrades

This commit is contained in:
Andras Bacsai
2023-07-05 21:26:21 +02:00
parent d757134ced
commit 1342634907
5 changed files with 227 additions and 242 deletions

View File

@@ -1,4 +1,4 @@
<li title="New version available" x-init="$wire.checkUpdate" x-data>
<li @if($isUpgradeAvailable) title="New version available" @else title="No upgrade available" @endif x-init="$wire.checkUpdate" x-data>
@if ($isUpgradeAvailable)
<button wire:click='upgrade' class="hover:bg-transparent focus:bg-transparent" x-on:click="upgrade">
@if ($showProgress)
@@ -22,6 +22,18 @@
</svg>
@endif
</button>
</div>
@else
<button class="hover:bg-transparent">
<svg xmlns="http://www.w3.org/2000/svg"
class="w-6 h-6 transition-colors text-neutral-700" viewBox="0 0 24 24"
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path
d="M9 12h-3.586a1 1 0 0 1 -.707 -1.707l6.586 -6.586a1 1 0 0 1 1.414 0l6.586 6.586a1 1 0 0 1 -.707 1.707h-3.586v3h-6v-3z" />
<path d="M9 21h6" />
<path d="M9 18h6" />
</svg>
</button>
@endif
</li>