autoupdate feature

This commit is contained in:
Andras Bacsai
2023-04-27 12:52:13 +02:00
parent 9fd62b4437
commit 4d69094a1f
5 changed files with 39 additions and 9 deletions

View File

@@ -13,6 +13,6 @@
@csrf
<button type="submit">Logout</button>
</form>
{{-- <livewire:check-update> --}}
@endauth
<livewire:check-update>
@endauth
</nav>

View File

@@ -1,4 +1,7 @@
<div>
<button wire:click='checkUpdate'>Updates</button>
@env('production')
<button wire:click='forceUpgrade'>Force Upgrade</button>
@endenv
{{ $updateAvailable ? 'Update available' : 'No updates' }}
</div>