mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 04:49:36 +00:00
Fix EDA bolt link to correctly open EDA tab via data-turbo=false
This commit is contained in:
parent
72a586164d
commit
6a0db3b1b7
1 changed files with 2 additions and 2 deletions
|
|
@ -165,9 +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'));
|
||||
|
||||
// Wrap in link to EDA settings tab
|
||||
// Wrap in link to EDA settings tab (data-turbo=false to ensure hash is read on page load)
|
||||
$editUrl = $this->entityURLGenerator->editURL($context) . '#eda';
|
||||
return sprintf('<a href="%s">%s</a>', $editUrl, $statusIcon);
|
||||
return sprintf('<a href="%s" data-turbo="false">%s</a>', $editUrl, $statusIcon);
|
||||
}
|
||||
|
||||
public function renderAmount(Part $context): string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue