mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 21:09:35 +00:00
Make EDA status bolt icon clickable to open EDA settings tab
This commit is contained in:
parent
618d21ae4f
commit
72a586164d
1 changed files with 3 additions and 1 deletions
|
|
@ -165,7 +165,9 @@ class PartDataTableHelper
|
|||
? sprintf('<i class="fa-solid fa-bolt fa-fw text-success" title="%s"></i>', $this->translator->trans('eda.status.complete'))
|
||||
: sprintf('<i class="fa-solid fa-bolt fa-fw text-warning" title="%s"></i>', $this->translator->trans('eda.status.partial'));
|
||||
|
||||
return $statusIcon;
|
||||
// Wrap in link to EDA settings tab
|
||||
$editUrl = $this->entityURLGenerator->editURL($context) . '#eda';
|
||||
return sprintf('<a href="%s">%s</a>', $editUrl, $statusIcon);
|
||||
}
|
||||
|
||||
public function renderAmount(Part $context): string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue