Release 2.0.2 (#3856)

* allow to overwrite global spreadsheet styles
* bump version
* fix deprecations in vcard download
* bump composer packages
* added help page for all registered locales
* fix menu id's, cleanup times route, fix configurable homepage redirect
* format duration without leading zero in hours (unify javascript with php behavior)
* fix active records in all screen sizes
* improved responsiveness in XS
* fixed invoice number for customer null fields
* fix javascript respects multiple recent-activity dropdowns
* show recent activities on small screens
* fix user-profile layout column in XS
* fix search is always marked as active
This commit is contained in:
Kevin Papst
2023-02-21 19:21:49 +01:00
committed by GitHub
parent e474087257
commit 25469113fd
61 changed files with 821 additions and 580 deletions

View File

@@ -21,6 +21,7 @@ final class ConfigureMainMenuEvent extends Event
private MenuItemModel $apps;
private MenuItemModel $admin;
private MenuItemModel $system;
private ?MenuItemModel $root = null;
public function __construct()
{
@@ -30,6 +31,19 @@ final class ConfigureMainMenuEvent extends Event
$this->system = new MenuItemModel('system', 'menu.system', '', [], 'configuration');
}
public function findById(string $identifier): ?MenuItemModel
{
if ($this->root === null) {
$this->root = new MenuItemModel('root', 'root');
$this->root->addChild($this->menu);
$this->root->addChild($this->apps);
$this->root->addChild($this->admin);
$this->root->addChild($this->system);
}
return $this->root->findChild($identifier);
}
public function getMenu(): MenuItemModel
{
return $this->menu;
@@ -37,7 +51,7 @@ final class ConfigureMainMenuEvent extends Event
public function getTimesheetMenu(): ?MenuItemModel
{
return $this->menu->getChild('timesheet');
return $this->menu->getChild('times');
}
public function getInvoiceMenu(): ?MenuItemModel