parent
d3a949ea80
commit
facf4bf844
|
|
@ -145,28 +145,41 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{{-- Badge rechts --}}
|
||||
<span class="shrink-0 inline-flex items-center gap-1.5 rounded-full text-[11px] border px-3 py-1
|
||||
{{ $this->hasUpdate
|
||||
? 'text-yellow-200 bg-yellow-500/10 border-yellow-400/30'
|
||||
: 'text-emerald-200 bg-emerald-500/10 border-emerald-400/30' }}">
|
||||
<i class="ph {{ $this->hasUpdate ? 'ph-arrow-fat-line-up' : 'ph-check-circle' }} text-[12px]"></i>
|
||||
{{ $this->hasUpdate ? 'Update verfügbar' : 'Aktuell' }}
|
||||
</span>
|
||||
<div class="flex flex-col items-end gap-1">
|
||||
<span class="inline-flex items-center gap-1.5 rounded-full text-[11px] border px-3 py-1 w-fit
|
||||
{{ $this->hasUpdate
|
||||
? 'text-yellow-200 bg-yellow-500/10 border-yellow-400/30'
|
||||
: 'text-emerald-200 bg-emerald-500/10 border-emerald-400/30' }}">
|
||||
<i class="ph {{ $this->hasUpdate ? 'ph-arrow-fat-line-up' : 'ph-check-circle' }} text-[12px]"></i>
|
||||
{{ $this->hasUpdate ? 'Update verfügbar' : 'Aktuell' }}
|
||||
</span>
|
||||
@if(!$this->hasUpdate)
|
||||
<button wire:click="runUpdate"
|
||||
@disabled($state==='running')
|
||||
class="inline-flex items-center gap-1.5 rounded-full text-[11px] px-3 py-1 w-fit
|
||||
text-emerald-200 bg-emerald-500/10 border border-emerald-400/30
|
||||
hover:bg-emerald-500/15 hover:border-emerald-300/50
|
||||
disabled:opacity-60">
|
||||
<i class="ph ph-arrow-fat-lines-up text-[14px]"></i>
|
||||
Jetzt aktualisieren
|
||||
</button>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="mt-4 flex items-center gap-2">
|
||||
@if($this->hasUpdate)
|
||||
<button wire:click="runUpdate"
|
||||
@disabled($state==='running')
|
||||
class="inline-flex items-center gap-2 rounded-lg px-3 py-1.5
|
||||
text-emerald-200 bg-emerald-500/10 border border-emerald-400/30
|
||||
hover:bg-emerald-500/15 hover:border-emerald-300/50
|
||||
disabled:opacity-60">
|
||||
<i class="ph ph-arrow-fat-lines-up text-[14px]"></i> Jetzt aktualisieren
|
||||
</button>
|
||||
@endif
|
||||
</div>
|
||||
{{-- <div class="mt-4 flex items-center gap-2">--}}
|
||||
{{-- @if($this->hasUpdate)--}}
|
||||
{{-- <button wire:click="runUpdate"--}}
|
||||
{{-- @disabled($state==='running')--}}
|
||||
{{-- class="inline-flex items-center gap-2 rounded-lg px-3 py-1.5--}}
|
||||
{{-- text-emerald-200 bg-emerald-500/10 border border-emerald-400/30--}}
|
||||
{{-- hover:bg-emerald-500/15 hover:border-emerald-300/50--}}
|
||||
{{-- disabled:opacity-60">--}}
|
||||
{{-- <i class="ph ph-arrow-fat-lines-up text-[14px]"></i> Jetzt aktualisieren--}}
|
||||
{{-- </button>--}}
|
||||
{{-- @endif--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- Fortschritt nur während running --}}
|
||||
@if($state === 'running')
|
||||
|
|
|
|||
Loading…
Reference in New Issue