trie_ok
This commit is contained in:
parent
8d22c62753
commit
f49047865d
@ -789,6 +789,12 @@ class ChatElement extends HTMLElement {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
processResult.sort((a, b) => {
|
||||||
|
const aInSet = this.userProcessSet.has(a.states[0].commited_in);
|
||||||
|
const bInSet = this.userProcessSet.has(b.states[0].commited_in);
|
||||||
|
return bInSet ? 1 : aInSet ? -1 : 0;
|
||||||
|
});
|
||||||
|
|
||||||
for (const process of processResult) {
|
for (const process of processResult) {
|
||||||
const li = document.createElement('li');
|
const li = document.createElement('li');
|
||||||
li.className = 'group-list-item';
|
li.className = 'group-list-item';
|
||||||
@ -807,6 +813,7 @@ class ChatElement extends HTMLElement {
|
|||||||
li.onmouseout = () => {
|
li.onmouseout = () => {
|
||||||
li.style.backgroundColor = 'var(--accent-color)';
|
li.style.backgroundColor = 'var(--accent-color)';
|
||||||
};
|
};
|
||||||
|
li.classList.add('my-process');
|
||||||
console.log("✅ Processus trouvé dans le set:", oneProcess);
|
console.log("✅ Processus trouvé dans le set:", oneProcess);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user