diff options
author | Alexander Menk <menk@mestrona.net> | 2016-12-20 11:00:21 +0100 |
---|---|---|
committer | Alexander Menk <menk@mestrona.net> | 2016-12-20 11:00:21 +0100 |
commit | d3cf54f1f77b3552b4f12fbde73463159cf1b359 (patch) | |
tree | 87ec536e4f40aefd727176cc7be3712d793d3b07 /web/app/view/CommandDialogController.js | |
parent | fef9d5331bbcd19d51dcf1f4d1e9355c67952004 (diff) | |
download | trackermap-web-d3cf54f1f77b3552b4f12fbde73463159cf1b359.tar.gz trackermap-web-d3cf54f1f77b3552b4f12fbde73463159cf1b359.tar.bz2 trackermap-web-d3cf54f1f77b3552b4f12fbde73463159cf1b359.zip |
#2702 Rename "Hearts" function to "Indicator" to be more general
Diffstat (limited to 'web/app/view/CommandDialogController.js')
-rw-r--r-- | web/app/view/CommandDialogController.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/web/app/view/CommandDialogController.js b/web/app/view/CommandDialogController.js index c719b5ee..9d7bb2ba 100644 --- a/web/app/view/CommandDialogController.js +++ b/web/app/view/CommandDialogController.js @@ -30,8 +30,8 @@ Ext.define('Traccar.view.CommandDialogController', { selected.getValue() !== 'sendSms'); this.lookupReference('paramSetTimezone').setHidden( selected.getValue() !== 'setTimezone'); - this.lookupReference('paramSetHearts').setHidden( - selected.getValue() !== 'setHearts'); + this.lookupReference('paramSetIndicator').setHidden( + selected.getValue() !== 'setIndicator'); this.lookupReference('paramCustom').setHidden( selected.getValue() !== 'custom'); }, @@ -90,11 +90,11 @@ Ext.define('Traccar.view.CommandDialogController', { }); } - if (record.get('type') === 'setHearts') { - attributes = this.lookupReference('paramSetHearts'); - value = attributes.down('numberfield[name="hearts"]').getValue(); + if (record.get('type') === 'setIndicator') { + attributes = this.lookupReference('paramSetIndicator'); + value = attributes.down('numberfield[name="data"]').getValue(); record.set('attributes', { - hearts: value + data: value }); } |