diff options
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'] }, { |