Skip to content
Snippets Groups Projects
Commit b57a97de authored by Tobias Feldmann's avatar Tobias Feldmann
Browse files

notification state changes with bulk update

parent 057bf291
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,5 @@ import("system.neon");
var user = tools.getCurrentUser();
var selectedNotifications = vars.get("$sys.selection");
for(var i = 0; i < selectedNotifications.length; i++)
notification.updateUserNotificationState(user["name"], selectedNotifications[i], notification.STATE_ARCHIVE);
notification.updateUserNotificationsState(user["name"], selectedNotifications, notification.STATE_ARCHIVE);
neon.refreshAll();
\ No newline at end of file
......@@ -5,8 +5,5 @@ import("system.neon");
var user = tools.getCurrentUser();
var selectedNotifications = vars.get("$sys.selection");
for(var i = 0; i < selectedNotifications.length; i++)
notification.updateUserNotificationState(user["name"], selectedNotifications[i], notification.STATE_UNSEEN);
notification.updateUserNotificationsState(user["name"], selectedNotifications, notification.STATE_UNSEEN);
neon.refreshAll();
\ No newline at end of file
......@@ -7,8 +7,5 @@ import("KeywordRegistry_basic");
var user = tools.getCurrentUser();
var selectedNotifications = vars.get("$sys.selection");
for(var i = 0; i < selectedNotifications.length; i++)
notification.updateUserNotificationState(user["name"], selectedNotifications[i], notification.STATE_CONFIRMED);
notification.updateUserNotificationsState(user["name"], selectedNotifications, notification.STATE_CONFIRMED);
neon.refreshAll();
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment