Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
HazelGrant committed Dec 13, 2024
1 parent 4b7f227 commit 2318cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dashboard/app/javascript/files/data_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class DataTable {
orderable: false,
defaultContent: '<input type="checkbox">',
render: (data, type, row, meta) => {
return "<input type='checkbox' data-dl-url='" + row.download_url + "'>";
return `<input type='checkbox' data-dl-url='${row.download_url}'>`;
}
},
{ data: 'type', render: (data, type, row, meta) => data == 'd' ? '<span title="directory" class="fa fa-folder" style="color: gold"><span class="sr-only"> dir</span></span>' : '<span title="file" class="fa fa-file" style="color: lightgrey"><span class="sr-only"> file</span></span>' }, // type
Expand Down

0 comments on commit 2318cf7

Please sign in to comment.