mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 18:58:46 +02:00
Added some basic DB fields for the new project system
This commit is contained in:
parent
8ae4e9fe05
commit
0c7ec9f0c7
36 changed files with 281 additions and 130 deletions
|
@ -25,7 +25,7 @@ namespace App\Services\Trees;
|
|||
use App\Entity\Base\AbstractDBElement;
|
||||
use App\Entity\Base\AbstractNamedDBElement;
|
||||
use App\Entity\Base\AbstractStructuralDBElement;
|
||||
use App\Entity\Devices\Device;
|
||||
use App\Entity\ProjectSystem\Project;
|
||||
use App\Entity\Parts\Category;
|
||||
use App\Entity\Parts\Footprint;
|
||||
use App\Entity\Parts\Manufacturer;
|
||||
|
@ -161,7 +161,7 @@ class TreeViewGenerator
|
|||
return $this->translator->trans('manufacturer.labelp');
|
||||
case Supplier::class:
|
||||
return $this->translator->trans('supplier.labelp');
|
||||
case Device::class:
|
||||
case Project::class:
|
||||
return $this->translator->trans('device.labelp');
|
||||
default:
|
||||
return $this->translator->trans('tree.root_node.text');
|
||||
|
@ -182,7 +182,7 @@ class TreeViewGenerator
|
|||
return $icon . 'fa-industry';
|
||||
case Supplier::class:
|
||||
return $icon . 'fa-truck';
|
||||
case Device::class:
|
||||
case Project::class:
|
||||
return $icon . 'fa-archive';
|
||||
default:
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue