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

453: Refactor or reimplement CR / DME overall behavior (new/update)

(OPENED)

Task-Url: search#453
parent b90eeb28
......@@ -82,8 +82,8 @@ CollectionsEditor.prototype.setGroupRow = function(rows, group) {
}
return $('<tr class="group state-row-' + overallState + '" id="' + rows.data()[0].entity.collection.id + '" />')
.append( '<th class="state-' + overallState + '"></th>' )
.append( '<td colspan="5">' +
.append( '<th></th>' )
.append( '<td colspan="5" style="background-color: transparent;">' +
'<h2 class="group-heading">' +
'<a href="' + __util.composeRelativeUrl(rows.data()[0].entity.collection.id) + '/">' + rows.data()[0].entity.collection.name + '</a>' +
'</h2>' +
......@@ -139,7 +139,7 @@ CollectionsEditor.prototype.getIcon = function(entity) {
CollectionsEditor.prototype.getState = function(entity) {
if (entity.error) {
return "error"
} else if (entity.warning || (entity.dataset.outdated && !this.autoOnline) || (!entity.dataset.outdated && entity.dataset.docs==0)) {
} else if (entity.warning || (entity.dataset.outdated && !this.autoOnline)) {
return "warning"
} else if (entity.processing || entity.waiting || entity.unknown || entity.dataset.outdated || entity.dataset.docs==0) {
return "info";
......
Supports Markdown
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