Tags épinglés : pipeline + rédaction toujours disponibles dans la liste
This commit is contained in:
+3
-1
@@ -597,8 +597,10 @@ function getModalTags() {
|
|||||||
return [...document.querySelectorAll('#f-tags .tag-chip')].map(c => c.dataset.tag);
|
return [...document.querySelectorAll('#f-tags .tag-chip')].map(c => c.dataset.tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const PINNED_TAGS = ['À revoir', 'À garder', 'À étudier', 'À rédiger', 'À compléter'];
|
||||||
|
|
||||||
function collectExistingTags() {
|
function collectExistingTags() {
|
||||||
const tagSet = new Set();
|
const tagSet = new Set(PINNED_TAGS);
|
||||||
records.forEach(r => {
|
records.forEach(r => {
|
||||||
if (r.Tags) r.Tags.split(',').forEach(t => { const trimmed = t.trim(); if (trimmed) tagSet.add(trimmed); });
|
if (r.Tags) r.Tags.split(',').forEach(t => { const trimmed = t.trim(); if (trimmed) tagSet.add(trimmed); });
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user