aboutsummaryrefslogtreecommitdiff
path: root/web/app/model
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-06 22:47:33 +1300
committerGitHub <noreply@github.com>2016-12-06 22:47:33 +1300
commit06c4ae96db8805cb3468a3028d652a1f8a0823b9 (patch)
tree837ca1f3382fd67fd1c2a12b56d3f553e6741242 /web/app/model
parentf8bf7ede29f2e063a30721e8ed415a6184646424 (diff)
parenta3641de343252f405df7970c97c72fff3e7405b9 (diff)
downloadtrackermap-web-06c4ae96db8805cb3468a3028d652a1f8a0823b9.tar.gz
trackermap-web-06c4ae96db8805cb3468a3028d652a1f8a0823b9.tar.bz2
trackermap-web-06c4ae96db8805cb3468a3028d652a1f8a0823b9.zip
Merge pull request #349 from Abyss777/fix_notifications2
Fix notifications
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 04dca9bf..54f6674c 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'
}]
});