fix #12: add an option to hide the opener and the panel when there is no application

This commit is contained in:
Simon Vieille 2020-04-29 09:03:03 +02:00
commit 4146e9c2a1
Signed by: deblan
GPG key ID: 03383D15A1D31745
6 changed files with 42 additions and 19 deletions

View file

@ -54,6 +54,7 @@ class JsController extends Controller
$parameters = [
'opener-position' => $this->config->getAppValue('side_menu', 'opener-position', 'before'),
'opener-hover' => (bool) $this->config->getAppValue('side_menu', 'opener-hover', '0'),
'hide-when-no-apps' => (bool) $this->config->getAppValue('side_menu', 'hide-when-no-apps', '0'),
];
$response = new TemplateResponse('side_menu', 'js/script', $parameters, 'blank');