coolify/resources/views/livewire/upgrade.blade.php

30 lines
1.6 KiB
PHP
Raw Normal View History

2024-03-19 15:37:16 +01:00
<div @if ($isUpgradeAvailable) title="New version available" @else title="No upgrade available" @endif
2023-08-11 20:19:42 +02:00
x-init="$wire.checkUpdate" x-data>
2023-06-15 11:39:15 +02:00
@if ($isUpgradeAvailable)
2024-03-19 15:37:16 +01:00
<button wire:key="upgrade" wire:click='upgrade' class="menu-item" x-on:click="upgrade">
2023-06-15 11:39:15 +02:00
@if ($showProgress)
<svg xmlns="http://www.w3.org/2000/svg"
2023-08-11 20:19:42 +02:00
class="w-6 h-6 text-pink-500 transition-colors hover:text-pink-300 lds-heart" 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="M19.5 13.572l-7.5 7.428l-7.5 -7.428m0 0a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572" />
2023-06-15 11:39:15 +02:00
</svg>
2024-03-19 15:37:16 +01:00
Inprogress
2023-06-15 11:39:15 +02:00
@else
<svg xmlns="http://www.w3.org/2000/svg"
2023-08-11 20:19:42 +02:00
class="w-6 h-6 text-pink-500 transition-colors hover:text-pink-300" 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" />
2023-06-15 11:39:15 +02:00
<path
2023-08-11 20:19:42 +02:00
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" />
2023-06-15 11:39:15 +02:00
</svg>
2024-03-19 15:37:16 +01:00
Upgrade
2023-06-15 11:39:15 +02:00
@endif
2023-06-16 21:16:30 +02:00
</button>
2023-06-15 11:39:15 +02:00
@endif
2024-03-19 15:37:16 +01:00
</div>