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

1257: Migrate administrative views

Task-Url: https://pm.winseda.de/issues/1257
parent 3c44dbea
This diff is collapsed.
......@@ -66,7 +66,7 @@ CollectionEditor.prototype.refresh = function() {
};
CollectionEditor.prototype.refreshData = function(endpointId, datasetId, urlSuffix, container) {
$(container + " [data-toggle=\"tooltip\"]").tooltip('destroy');
//$(container + " [data-toggle=\"tooltip\"]").tooltip('destroy');
$.ajax({
url: __util.composeRelativeUrl(endpointId + "/" + datasetId + "/" + urlSuffix),
......
......@@ -90,7 +90,7 @@ CollectionsEditor.prototype.renderStateColumn = function(row, type, val, meta) {
var nodes = this._base.table.column(meta.column).nodes();
$(nodes[meta.row]).addClass("state-" + this.getState(row.entity));
return "<i class='fa fa-lg fa-" + this.getIcon(row.entity) + "' aria-hidden='true'></i>";
return "<i class='" + this.getIcon(row.entity) + " fa-lg' aria-hidden='true'></i>";
} else {
// TODO: render some status message instead
return this.getIcon(row.entity);
......@@ -106,15 +106,15 @@ CollectionsEditor.prototype.renderUrlColumn = function(row, type, val, meta) {
CollectionsEditor.prototype.getIcon = function(entity) {
if (entity.error || entity.warning) {
return "exclamation";
return "fas fa-exclamation-circle";
} else if (entity.processing) {
return "refresh";
return "fas fa-sync-alt";
} else if (entity.waiting) {
return "clock-o";
return "fas fa-clock";
} else if (entity.unknown || entity.dataset.docs==0) {
return "question";
return "fas fa-question-circle";
} else {
return "check";
return "fas fa-check-circle";
}
};
......
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