Rename refresh buttons to 'Actualisation Rapide' and 'Actualisation détaillée'
**Motivations:**
- Renommer les boutons pour une meilleure clarté et cohérence
- "Actualiser (fichier)" → "Actualisation Rapide"
- "Charger depuis RPC (statuts complets)" → "Actualisation détaillée"
**Correctifs:**
- Modification des textes des boutons
- Ajout d'IDs uniques (refresh-fast-button, refresh-detailed-button) pour une meilleure gestion
- Remplacement de la vérification par texte (includes('fichier')) par une vérification par ID
**Pages affectées:**
- signet-dashboard/public/utxo-list.html
This commit is contained in:
parent
2c83bd0cdd
commit
df5c731cd2
@ -297,8 +297,8 @@
|
||||
<button class="consolidate-button" id="consolidate-button" onclick="consolidateSmallUtxos()" style="margin-left: 10px; background: #ffc107; color: #000; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 1em; margin-top: 10px;">Chargement...</button>
|
||||
<p><strong>Montant total :</strong> <span id="total-amount" class="total-amount">-</span></p>
|
||||
<p><strong>Dernière mise à jour :</strong> <span id="last-update">-</span></p>
|
||||
<button class="refresh-button" onclick="loadUtxoList()">Actualiser (fichier)</button>
|
||||
<button class="refresh-button" onclick="loadUtxoListFromRPC()" style="margin-left: 10px; background: #007bff;">Charger depuis RPC (statuts complets)</button>
|
||||
<button class="refresh-button" id="refresh-fast-button" onclick="loadUtxoList()">Actualisation Rapide</button>
|
||||
<button class="refresh-button" id="refresh-detailed-button" onclick="loadUtxoListFromRPC()" style="margin-left: 10px; background: #007bff;">Actualisation détaillée</button>
|
||||
<a href="/api/utxo/list.txt" download="utxo_list.txt" style="margin-left: 10px; color: #007bff; text-decoration: none;">📥 Télécharger le fichier texte</a>
|
||||
</div>
|
||||
</div>
|
||||
@ -682,11 +682,10 @@
|
||||
const progressPercent = document.getElementById('progress-percent');
|
||||
const progressStats = document.getElementById('progress-stats');
|
||||
|
||||
buttons.forEach(btn => {
|
||||
if (btn.textContent.includes('fichier')) {
|
||||
btn.disabled = true;
|
||||
const fastButton = document.getElementById('refresh-fast-button');
|
||||
if (fastButton) {
|
||||
fastButton.disabled = true;
|
||||
}
|
||||
});
|
||||
contentDiv.innerHTML = '';
|
||||
utxosFromFile = true;
|
||||
progressSection.style.display = 'block';
|
||||
@ -794,11 +793,10 @@
|
||||
progressSection.style.display = 'none';
|
||||
contentDiv.innerHTML = `<div class="error">Erreur lors du chargement de la liste des UTXO : ${error.message}</div>`;
|
||||
} finally {
|
||||
buttons.forEach(btn => {
|
||||
if (btn.textContent.includes('fichier')) {
|
||||
btn.disabled = false;
|
||||
const fastButton = document.getElementById('refresh-fast-button');
|
||||
if (fastButton) {
|
||||
fastButton.disabled = false;
|
||||
}
|
||||
});
|
||||
loadSmallUtxosInfo();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user