Fix characteristic naming to measurement

This commit is contained in:
Matthew Dillon 2015-12-02 10:47:07 -07:00
parent 658304f728
commit 0956ef3a25
7 changed files with 12 additions and 12 deletions

View file

@ -11,7 +11,7 @@ export default Component.extend({
canAdd: false,
// Actions
"add-characteristic": null,
"add-measurement": null,
"save-measurement": null,
"delete-measurement": null,
@ -22,8 +22,8 @@ export default Component.extend({
sortedMeasurements: sort('measurements', 'sortParams'),
actions: {
addCharacteristic: function() {
return this.attrs['add-characteristic']();
addMeasurement: function() {
return this.attrs['add-measurement']();
},
changeSortParam: function(col) {

View file

@ -1,7 +1,7 @@
{{#if canAdd}}
<br>
<button class="button-green smaller" {{action "addCharacteristic"}}>
Add characteristic
<button class="button-green smaller" {{action "addMeasurement"}}>
Add measurement
</button>
<br><br>
{{/if}}