Fix characteristic naming to measurement
This commit is contained in:
parent
658304f728
commit
0956ef3a25
7 changed files with 12 additions and 12 deletions
|
@ -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) {
|
||||
|
|
|
@ -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}}
|
||||
|
|
Reference in a new issue