mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-03 06:54:34 +02:00
Improved the association edit panel
This commit is contained in:
parent
8ab9cf1417
commit
81f8b365e9
5 changed files with 70 additions and 1 deletions
|
@ -34,4 +34,13 @@ enum AssociationType: int
|
|||
case COMPATIBLE = 1;
|
||||
/** The owning part supersedes the other part (owner is newer version) */
|
||||
case SUPERSEDES = 2;
|
||||
|
||||
/**
|
||||
* Returns the translation key for this association type.
|
||||
* @return string
|
||||
*/
|
||||
public function getTranslationKey(): string
|
||||
{
|
||||
return 'part_association.type.' . strtolower($this->name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue