aboutsummaryrefslogtreecommitdiff
path: root/web/app/model
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/model')
-rw-r--r--web/app/model/Notification.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/web/app/model/Notification.js b/web/app/model/Notification.js
index 04dca9b..54f6674 100644
--- a/web/app/model/Notification.js
+++ b/web/app/model/Notification.js
@@ -17,7 +17,7 @@
Ext.define('Traccar.model.Notification', {
extend: 'Ext.data.Model',
- identifier: 'negative',
+ idProperty: 'type',
fields: [{
name: 'id',
@@ -31,12 +31,10 @@ Ext.define('Traccar.model.Notification', {
}, {
name: 'attributes'
}, {
- name: 'attributes.web',
- type: 'bool',
- mapping: 'attributes.web'
+ name: 'web',
+ type: 'bool'
}, {
- name: 'attributes.mail',
- type: 'bool',
- mapping: 'attributes.mail'
+ name: 'mail',
+ type: 'bool'
}]
});