add options to select apps that must be displayed in the top menu (replace exteral sites option)

This commit is contained in:
Simon Vieille 2020-08-12 10:51:49 +02:00
commit ffab77aff2
Signed by untrusted user: deblan
GPG key ID: 03383D15A1D31745
8 changed files with 67 additions and 23 deletions

View file

@ -61,6 +61,7 @@ class JsController extends Controller
'hide-when-no-apps' => (bool) $this->config->getAppValue('side_menu', 'hide-when-no-apps', '0'),
'loader-enabled' => (bool) $this->config->getAppValue('side_menu', 'loader-enabled', '1'),
'big-menu' => (bool) $this->config->getAppValue('side_menu', 'big-menu', '0'),
'top-menu-apps' => (array) json_decode($this->config->getAppValue('side_menu', 'top-menu-apps', '[]'), true),
];
$response = new TemplateResponse('side_menu', 'js/script', $parameters, 'blank');