Firewall: Aliases - leave out fractional seconds from timestamps. closes https://github.com/opnsense/core/pull/6432

This commit is contained in:
Ad Schellevis 2023-03-22 08:59:04 +01:00
parent 33ad50456a
commit 38dfe47258

View File

@ -84,6 +84,12 @@
}
return html.join(' ');
}
},
timestamp: function (column, row) {
if (row[column.id] && row[column.id].includes('.')) {
return row[column.id].split('.')[0];
}
return row[column.id];
}
}
}
@ -614,7 +620,7 @@
<th data-column-id="description" data-type="string">{{ lang._('Description') }}</th>
<th data-column-id="content" data-type="string">{{ lang._('Content') }}</th>
<th data-column-id="current_items" data-type="string">{{ lang._('Loaded#') }}</th>
<th data-column-id="last_updated" data-type="string">{{ lang._('Last updated') }}</th>
<th data-column-id="last_updated" data-formatter="timestamp" data-type="string">{{ lang._('Last updated') }}</th>
<th data-column-id="commands" data-width="7em" data-formatter="commands" data-sortable="false">{{ lang._('Commands') }}</th>
</tr>
</thead>