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/model/Notification.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'web/app/model/Notification.js') 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' }] }); -- cgit v1.2.3