diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-09-14 22:59:54 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-14 22:59:54 +1200 |
commit | ca960df40e15d7bfb88d2e0e41a269d4b069058c (patch) | |
tree | 0b41508a3f856700c353e5a5082c6ea829f13d43 /web/app/model/KnownCommand.js | |
parent | 4193ac77fd9f0da264284a6f73601963995554c8 (diff) | |
parent | be47d612285d484e2d0a2aa43174fb8e36acd816 (diff) | |
download | trackermap-web-ca960df40e15d7bfb88d2e0e41a269d4b069058c.tar.gz trackermap-web-ca960df40e15d7bfb88d2e0e41a269d4b069058c.tar.bz2 trackermap-web-ca960df40e15d7bfb88d2e0e41a269d4b069058c.zip |
Merge pull request #585 from Abyss777/saved_commands
Implement Saved Commands
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'] }, { |