aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/State.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/State.js')
-rw-r--r--web/app/view/State.js26
1 files changed, 24 insertions, 2 deletions
diff --git a/web/app/view/State.js b/web/app/view/State.js
index 2974367e..ddb9c0ea 100644
--- a/web/app/view/State.js
+++ b/web/app/view/State.js
@@ -26,12 +26,34 @@ Ext.define('Traccar.view.State', {
controller: 'state',
store: 'Attributes',
- title: Strings.stateTitle,
+ header: {
+ xtype: 'header',
+ title: Strings.stateTitle,
+ items: [{
+ xtype: 'tbfill'
+ }, {
+ xtype: 'button',
+ disabled: true,
+ handler: 'onAliasEditClick',
+ reference: 'aliasEditButton',
+ glyph: 'xf040@FontAwesome',
+ tooltip: Strings.sharedEdit,
+ tooltipType: 'title'
+ }]
+ },
+
+ listeners: {
+ selectionchange: 'onSelectionChange'
+ },
columns: [{
text: Strings.stateName,
dataIndex: 'name',
- flex: 1
+ flex: 1,
+ renderer: function (value, metaData, record) {
+ var alias = record.get('alias');
+ return alias !== '' ? alias : value;
+ }
}, {
text: Strings.stateValue,
dataIndex: 'value',