fix cache and config key

This commit is contained in:
Simon Vieille 2020-08-13 23:02:28 +02:00
parent aad3038003
commit d9ea37ba62
Signed by: deblan
GPG key ID: 03383D15A1D31745
2 changed files with 3 additions and 3 deletions

View file

@ -69,7 +69,7 @@ class Admin implements ISettings
'current-app-background-color' => $this->config->getAppValue('side_menu', 'current-app-background-color', '#444444'),
'loader-color' => $this->config->getAppValue('side_menu', 'loader-color', '#0e75ac'),
'icon-invert-filter' => (int) $this->config->getAppValue('side_menu', 'icon-invert-filter', '0'),
'icon-opacity' => (int) $this->config->getAppValue('side_menu', 'opacity', '100'),
'icon-opacity' => (int) $this->config->getAppValue('side_menu', 'icon-opacity', '100'),
'loader-enabled' => $this->config->getAppValue('side_menu', 'loader-enabled', '1'),
'text-color' => $this->config->getAppValue('side_menu', 'text-color', '#FFFFFF'),
'cache' => $this->config->getAppValue('side_menu', 'cache', '0'),

View file

@ -52,8 +52,8 @@ const saveSettings = (key) => {
const size = elements.length
if (element === 'side-menu-cache') {
value++
if (name === 'cache') {
++value
}
const callbacks = {