Page Projets : copie URL dans le menu ⋯ + refonte thème barre Fusion/Spark (#44, #45)
CI / test (push) Failing after 2s
CI / test (push) Failing after 2s
This commit is contained in:
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user