UI improvement (#1829)
* open "create new project/activity" form in modal * re-use action translation for create action title * do not pre-select first customer in list - fixes #1828 * sort user preferences in sections for better visual grouping * show comment date only in hover of user avatar
This commit is contained in:
@@ -83,11 +83,12 @@ class UserPreference
|
||||
* @var int
|
||||
*/
|
||||
private $order = 1000;
|
||||
|
||||
/**
|
||||
* @return int
|
||||
* @var string
|
||||
*/
|
||||
public function getId()
|
||||
private $section = 'default';
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
@@ -264,4 +265,16 @@ class UserPreference
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setSection(string $section): UserPreference
|
||||
{
|
||||
$this->section = $section;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSection(): string
|
||||
{
|
||||
return $this->section;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user