Update tag.html
This commit is contained in:
parent
668435a637
commit
2866af55b4
@ -91,7 +91,16 @@ function showList(){
|
|||||||
tagLable.appendChild(showLabels);
|
tagLable.appendChild(showLabels);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(label in jsonData['labelColorDict']){
|
let labelsSet = new Set();
|
||||||
|
for(let key in jsonData) {
|
||||||
|
if (key !== 'labelColorDict' && Array.isArray(jsonData[key]['labels'])) {
|
||||||
|
for (let label of jsonData[key]['labels']) {
|
||||||
|
labelsSet.add(label);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let labelsList = Array.from(labelsSet);
|
||||||
|
for(label in labelsList){
|
||||||
tagList.push(label);
|
tagList.push(label);
|
||||||
let showLabels=document.createElement("button");
|
let showLabels=document.createElement("button");
|
||||||
showLabels.setAttribute("class","Label");
|
showLabels.setAttribute("class","Label");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user