Display link column in part table

This commit is contained in:
Oliver Walters committed 2021-01-20 18:04:08 +11:00
1 parent 71522fa608
commit 69362ab960
2 files changed
+38 -2

No files matched your search

+14
View File
@@ -446,6 +446,20 @@ function loadPartTable(table, url, options={}) {
}
});
columns.push({
field: 'link',
title: '{% trans "Link" %}',
formatter: function(value, row, index, field) {
return renderLink(
value, value,
{
max_length: 32,
remove_http: true,
}
);
}
});
$(table).inventreeTable({
url: url,
sortName: 'name',