aboutsummaryrefslogtreecommitdiff
path: root/web/app/store/Notifications.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-09-19 09:36:16 +0500
committerAbyss777 <abyss@fox5.ru>2017-09-19 16:38:28 +0500
commit3a5e334b50bf35d11743d937c9fae2fb8c7829ec (patch)
treef66c5d8ddcbe861b045e20d0390e8987ac329d7b /web/app/store/Notifications.js
parentd078ef703795ed9c1fb0b6111ee7d12e09143f82 (diff)
downloadetbsa-traccar-web-3a5e334b50bf35d11743d937c9fae2fb8c7829ec.tar.gz
etbsa-traccar-web-3a5e334b50bf35d11743d937c9fae2fb8c7829ec.tar.bz2
etbsa-traccar-web-3a5e334b50bf35d11743d937c9fae2fb8c7829ec.zip
Implement Notifications per device
Diffstat (limited to 'web/app/store/Notifications.js')
-rw-r--r--web/app/store/Notifications.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/web/app/store/Notifications.js b/web/app/store/Notifications.js
index a672fd4..b30505f 100644
--- a/web/app/store/Notifications.js
+++ b/web/app/store/Notifications.js
@@ -21,11 +21,9 @@ Ext.define('Traccar.store.Notifications', {
proxy: {
type: 'rest',
- url: 'api/users/notifications'
- },
- sortOnLoad: true,
- sorters: {
- property: 'type',
- direction: 'ASC'
+ url: 'api/notifications',
+ writer: {
+ writeAllFields: true
+ }
}
});