fix: avoid document name exceeding card width
This commit is contained in:
@@ -113,6 +113,18 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getTypeLabel(): string
|
||||
{
|
||||
return match($this->getType()) {
|
||||
self::TYPE_PHOTO => 'Foto',
|
||||
self::TYPE_CERTIFICATE => 'Lizenz',
|
||||
self::TYPE_CONTRACT => 'Honorarvertrag',
|
||||
self::TYPE_INVOICE => 'Honorarnote',
|
||||
self::TYPE_DOCUMENT => 'Info',
|
||||
default => 'Dokument',
|
||||
};
|
||||
}
|
||||
|
||||
public function getStatus(): ?string
|
||||
{
|
||||
return $this->status;
|
||||
|
||||
Reference in New Issue
Block a user