diff options
Diffstat (limited to 'web/app/model/Command.js')
-rw-r--r-- | web/app/model/Command.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/web/app/model/Command.js b/web/app/model/Command.js index 789c3647..aa3dad14 100644 --- a/web/app/model/Command.js +++ b/web/app/model/Command.js @@ -20,12 +20,26 @@ Ext.define('Traccar.model.Command', { identifier: 'negative', fields: [{ + name: 'id', + type: 'int' + }, { + name: 'description', + type: 'string' + }, { name: 'deviceId', type: 'int' }, { name: 'type', type: 'string' }, { + name: 'name', + convert: function (v, rec) { + var name = Strings['command' + rec.get('type').charAt(0).toUpperCase() + rec.get('type').slice(1)]; + return name ? name : rec.get('type'); + }, + depends: ['type'], + persist: false + }, { name: 'textChannel', type: 'boolean' }, { |