diff options
Diffstat (limited to 'web/app/view/StateController.js')
-rw-r--r-- | web/app/view/StateController.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js index f0370f9..0723dc1 100644 --- a/web/app/view/StateController.js +++ b/web/app/view/StateController.js @@ -124,15 +124,13 @@ Ext.define('Traccar.view.StateController', { if (aliasIndex !== -1) { name = this.aliasesStore.getAt(aliasIndex).get('alias'); } else { - name = key.replace(/^./, function (match) { - return match.toUpperCase(); - }); + name = Ext.getStore('PositionAttributes').getAttributeName(key, true); } store.add(Ext.create('Traccar.model.Attribute', { priority: 1024, name: name, attribute: key, - value: Traccar.AttributeFormatter.getFormatter(key)(attributes[key]) + value: Traccar.AttributeFormatter.getAttributeFormatter(key)(attributes[key]) })); } } |