Skip to content
Snippets Groups Projects
Verified Commit 2202610f authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

add-forge-now: Fix datatable listing setup

After the latest change to the api:
- the 'request_id' field got renamed to 'id'
- we no longer need the extra callback to map the result to list
parent 37b0bf0b
Loading
......@@ -112,15 +112,12 @@ export function populateModerationList() {
dom: '<<"d-flex justify-content-between align-items-center"f' +
'<"#list-exclude">l>rt<"bottom"ip>>',
ajax: {
'url': Urls.api_1_add_forge_request_list(),
'dataSrc': function(data) {
return data;
}
'url': Urls.api_1_add_forge_request_list()
},
columns: [
{
data: 'id',
name: 'request_id',
name: 'id',
render: function(fieldData, type, row, meta) {
return ''.concat('<a href="/forge/request/', fieldData, '">', fieldData, '</a>');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment