mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 18:58:46 +02:00
Added label profile edit and scanner dialog to tools menu.
This commit is contained in:
parent
99fc7562b7
commit
f16dec51b6
1 changed files with 13 additions and 0 deletions
|
@ -45,6 +45,7 @@ namespace App\Services\Trees;
|
|||
use App\Entity\Attachments\AttachmentType;
|
||||
use App\Entity\Attachments\PartAttachment;
|
||||
use App\Entity\Devices\Device;
|
||||
use App\Entity\LabelSystem\LabelProfile;
|
||||
use App\Entity\Parts\Category;
|
||||
use App\Entity\Parts\Footprint;
|
||||
use App\Entity\Parts\Manufacturer;
|
||||
|
@ -122,6 +123,11 @@ class ToolsTreeBuilder
|
|||
$this->urlGenerator->generate('label_dialog')
|
||||
);
|
||||
|
||||
$nodes[] = new TreeViewNode(
|
||||
$this->translator->trans('tree.tools.tools.label_scanner'),
|
||||
$this->urlGenerator->generate('scan_dialog')
|
||||
);
|
||||
|
||||
return $nodes;
|
||||
}
|
||||
|
||||
|
@ -188,6 +194,12 @@ class ToolsTreeBuilder
|
|||
$this->urlGenerator->generate('measurement_unit_new')
|
||||
);
|
||||
}
|
||||
if ($this->security->isGranted('create', new LabelProfile())) {
|
||||
$nodes[] = new TreeViewNode(
|
||||
$this->translator->trans('tree.tools.edit.label_profile'),
|
||||
$this->urlGenerator->generate('label_profile_new')
|
||||
);
|
||||
}
|
||||
if ($this->security->isGranted('create', new Part())) {
|
||||
$nodes[] = new TreeViewNode(
|
||||
$this->translator->trans('tree.tools.edit.part'),
|
||||
|
@ -195,6 +207,7 @@ class ToolsTreeBuilder
|
|||
);
|
||||
}
|
||||
|
||||
|
||||
return $nodes;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue