mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-18 17:31:35 +00:00
Rename SI column from "Name (SI)" to "SI Value"
The column now shows the parsed numeric value rather than the part name, so the label should reflect that.
This commit is contained in:
parent
63486782c4
commit
f75c5d7dd9
3 changed files with 6 additions and 7 deletions
|
|
@ -119,8 +119,8 @@ final class PartsDataTable implements DataTableTypeInterface
|
|||
'render' => fn($value, Part $context) => $this->partDataTableHelper->renderName($context),
|
||||
'orderField' => 'NATSORT(part.name)'
|
||||
])
|
||||
->add('si_name', TextColumn::class, [
|
||||
'label' => $this->translator->trans('part.table.si_name'),
|
||||
->add('si_value', TextColumn::class, [
|
||||
'label' => $this->translator->trans('part.table.si_value'),
|
||||
'render' => function ($value, Part $context): string {
|
||||
$siValue = SiValueSort::sqliteSiValue($context->getName());
|
||||
if ($siValue !== null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue