aboutsummaryrefslogtreecommitdiff
path: root/web/app/model/Notification.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-12-02 15:59:45 +0700
committerAbyss777 <abyss@fox5.ru>2016-12-04 17:47:22 +0700
commita3641de343252f405df7970c97c72fff3e7405b9 (patch)
tree837ca1f3382fd67fd1c2a12b56d3f553e6741242 /web/app/model/Notification.js
parentf8bf7ede29f2e063a30721e8ed415a6184646424 (diff)
downloadtrackermap-web-a3641de343252f405df7970c97c72fff3e7405b9.tar.gz
trackermap-web-a3641de343252f405df7970c97c72fff3e7405b9.tar.bz2
trackermap-web-a3641de343252f405df7970c97c72fff3e7405b9.zip
Use model instead of attributes to store notifications options
Diffstat (limited to 'web/app/model/Notification.js')
-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'
}]
});