Commit b90eeb28 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

446: Reimplement automatic online crawl capabilities (OPENED)

Task-Url: search#446
parent b6183a95
......@@ -137,10 +137,9 @@ CollectionsEditor.prototype.getIcon = function(entity) {
};
CollectionsEditor.prototype.getState = function(entity) {
console.log(this.autoOnline);
if (entity.error) {
return "error"
} else if (entity.warning || (entity.dataset.outdated && !this.autoOnline) ) {
} else if (entity.warning || (entity.dataset.outdated && !this.autoOnline) || (!entity.dataset.outdated && entity.dataset.docs==0)) {
return "warning"
} else if (entity.processing || entity.waiting || entity.unknown || entity.dataset.outdated || entity.dataset.docs==0) {
return "info";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment