Merge pull request #130 from Dumbgenius/enhancement-85

Added "carried" checkbox to container edit screen (resolves #85)
This commit is contained in:
Stefan Zermatten
2017-09-07 11:54:11 +02:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -17,6 +17,9 @@
</paper-input>
<paper-input id="valueInput" label="Value" type="number" value={{value}}>
</paper-input>
<paper-toggle-button id="carriedToggle" checked={{isCarried}}>
Carried
</paper-toggle-button>
</div>
<hr class="vertMargin">

View File

@@ -54,4 +54,8 @@ Template.containerEdit.events({
trimStrings: false,
});
},
"change #carriedToggle": function(event, instance){
var carried = !this.isCarried;
Containers.update(this._id, {$set: {isCarried: carried}});
}
});