Page Projets : copie URL dans le menu ⋯ + refonte thème barre Fusion/Spark (#44, #45)
CI / test (push) Failing after 2s

This commit is contained in:
2026-10-29 08:21:51 -04:00
parent 0393a91ff8
commit a090824db3
+3 -3
View File
@@ -31,7 +31,7 @@
var data = await res.json();
if (!data.ok) throw new Error(data.error || 'échec');
btn.setAttribute('data-starred', want ? '1' : '0');
btn.textContent = want ? '⭐' : '☆';
btn.textContent = want ? '★' : '☆';
btn.title = want ? 'Désépingler (étoile Gitea)' : 'Épingler (étoile Gitea)';
var card = btn.closest('.project-card');
if (card) {
@@ -44,9 +44,9 @@
refreshPinnedVisibility();
}
} catch (err) {
btn.textContent = '⚠️';
btn.textContent = '!';
setTimeout(function () {
btn.textContent = btn.getAttribute('data-starred') === '1' ? '⭐' : '☆';
btn.textContent = btn.getAttribute('data-starred') === '1' ? '★' : '☆';
}, 1600);
} finally {
btn.disabled = false;