This commit is contained in:
Andras Bacsai 2023-04-28 08:46:39 +02:00
parent 8ab185369e
commit befc51beec

View File

@ -1,7 +1,17 @@
<div>
<button wire:click='checkUpdate'>Updates</button>
<div wire:loading wire:target="checkUpdate">
Checking for updates...
</div>
@env('production')
@if (auth()->user()->teams->contains(0))
<button wire:click='forceUpgrade'>Force Upgrade</button>
<div wire:loading wire:target="forceUpgrade">
Updating Coolify...
</div>
@endif
@endenv
@if ($updateAvailable)
Update available
@endif
{{ $updateAvailable ? 'Update available' : 'No updates' }}
</div>