diff --git a/app/static/js/CorpusList.js b/app/static/js/CorpusList.js index a0e5932a..eae12786 100644 --- a/app/static/js/CorpusList.js +++ b/app/static/js/CorpusList.js @@ -37,6 +37,7 @@ class CorpusList extends List { corpusStatusElement.classList.remove(...Object.values(CorpusList.STATUS_COLORS)); corpusStatusElement.classList.add(CorpusList.STATUS_COLORS[operation.value] || CorpusList.STATUS_COLORS['default']); corpusStatusElement.innerHTML = operation.value; + item.values({status: operation.value}); break; default: break; @@ -106,13 +107,15 @@ class CorpusList extends List { * Add an entry to the List.js datastructure and immediatly replace the * generic DOM element with our own one created above. */ - this.add([{description: corpus.description, id: corpus.id, title: corpus.title}], + this.add([{description: corpus.description, id: corpus.id, + status: corpus.status, title: corpus.title}], function(items) {items[0].elm = rowElement;}); } } CorpusList.DEFAULT_OPTIONS = {item: `
+ | + Title + Description + | +Status | ++ |
---|
Service | ++ Title + Description + | +Status | ++ |
---|
+ | + Title + Description + | +Status | ++ |
---|
Service | ++ Title + Description + | +Status | ++ |
---|