diff options
author | Abyss777 <abyss@fox5.ru> | 2017-09-14 09:38:14 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-09-14 09:38:14 +0500 |
commit | be47d612285d484e2d0a2aa43174fb8e36acd816 (patch) | |
tree | 311da517ca347969c290b06285b4451fdfc6e98b /web/app/model/KnownCommand.js | |
parent | a5d36c62facad98c409b9fcd4f8b92c3d47601ab (diff) | |
download | trackermap-web-be47d612285d484e2d0a2aa43174fb8e36acd816.tar.gz trackermap-web-be47d612285d484e2d0a2aa43174fb8e36acd816.tar.bz2 trackermap-web-be47d612285d484e2d0a2aa43174fb8e36acd816.zip |
Improve command type formatting
Diffstat (limited to 'web/app/model/KnownCommand.js')
-rw-r--r-- | web/app/model/KnownCommand.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web/app/model/KnownCommand.js b/web/app/model/KnownCommand.js index 08213020..06610e32 100644 --- a/web/app/model/KnownCommand.js +++ b/web/app/model/KnownCommand.js @@ -25,8 +25,7 @@ Ext.define('Traccar.model.KnownCommand', { }, { 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'); + return Traccar.AttributeFormatter.getFormatter('commandType')(rec.get('type')); }, depends: ['type'] }, { |