mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 05:25:42 +00:00
add item link
This commit is contained in:
@ -58,6 +58,20 @@ function loadNotificationTable(table, options={}) {
|
|||||||
title: '{% trans "Category" %}',
|
title: '{% trans "Category" %}',
|
||||||
sortable: 'true',
|
sortable: 'true',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'target',
|
||||||
|
title: '{% trans "Item" %}',
|
||||||
|
sortable: 'true',
|
||||||
|
formatter: function(value, row, index, field) {
|
||||||
|
if (value == null) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
var html = `${value.model}: ${value.name}`;
|
||||||
|
if (value.link ) {html = `<a href='${value.link}'>${html}</a>`;}
|
||||||
|
return html;
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'name',
|
field: 'name',
|
||||||
title: '{% trans "Name" %}',
|
title: '{% trans "Name" %}',
|
||||||
|
Reference in New Issue
Block a user