* [ADD] Added In-App notifications polling. It will show up a browser notification when there are pending notifications

* [MOD] Improved Javascript error handling
* [MOD] Code refactoring

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
nuxsmin
2018-10-16 01:13:38 +02:00
parent 0e3c8beaf2
commit e322563a66
35 changed files with 622 additions and 386 deletions

View File

@@ -60,6 +60,7 @@ final class UserSettingsGeneralController extends SimpleControllerBase
$userPreferencesData->setTopNavbar($this->request->analyzeBool('top_navbar', false));
$userPreferencesData->setOptionalActions($this->request->analyzeBool('optional_actions', false));
$userPreferencesData->setResultsAsCards($this->request->analyzeBool('resultsascards', false));
$userPreferencesData->setCheckNotifications($this->request->analyzeBool('check_notifications', false));
try {
$this->userService->updatePreferencesById($userData->getId(), $userPreferencesData);