fix: icône refresh store + bouton Réinstaller pour modules déjà en DB

This commit is contained in:
enzo 2026-03-22 18:21:22 +01:00
parent de4af0ee26
commit ab834600ba

View file

@ -93,7 +93,7 @@
<div style="display:flex;align-items:center;gap:.75rem;margin-top:2rem">
<h3 class="section-title" style="margin:0"><i class="lnid-download-2"></i> Store</h3>
<button class="neu-btn neu-btn--sm neu-btn--icon-sm" @click="loadStore()" :disabled="storeLoading" title="Rafraîchir le store">
<i class="lnid-refresh-2" :class="{ 'spin': storeLoading }"></i>
<i class="lnid-refresh-circle-1-clockwise" :class="{ 'spin': storeLoading }"></i>
</button>
</div>
<p class="section-desc">Modules disponibles depuis <a href="https://git.geronzi.fr/proxmoxPanel" target="_blank">git.geronzi.fr/proxmoxPanel</a></p>
@ -120,14 +120,12 @@
<a class="module-repo-link" :href="mod.repo_url" target="_blank" x-text="mod.repo_url"></a>
</div>
<div class="module-toggle">
<span class="installed-badge" x-show="mod.installed">Installé</span>
<button class="neu-btn neu-btn--sm neu-btn--primary"
x-show="!mod.installed"
@click="install(mod)"
:disabled="installing[mod.id]">
<span x-show="installing[mod.id]" class="spinner-sm"></span>
<i x-show="!installing[mod.id]" class="lnid-download-2"></i>
Installer
<i x-show="!installing[mod.id]" :class="mod.installed ? 'lnid-refresh-circle-1-clockwise' : 'lnid-download-2'"></i>
<span x-text="mod.installed ? 'Réinstaller' : 'Installer'"></span>
</button>
</div>
</div>