From a3641de343252f405df7970c97c72fff3e7405b9 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 2 Dec 2016 15:59:45 +0700 Subject: Use model instead of attributes to store notifications options --- web/app/store/Notifications.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'web/app/store/Notifications.js') diff --git a/web/app/store/Notifications.js b/web/app/store/Notifications.js index e4d2991a..d79702fc 100644 --- a/web/app/store/Notifications.js +++ b/web/app/store/Notifications.js @@ -22,5 +22,7 @@ Ext.define('Traccar.store.Notifications', { proxy: { type: 'rest', url: 'api/users/notifications' - } + }, + sortOnLoad: true, + sorters: { property: 'type', direction : 'ASC' } }); -- cgit v1.2.3