Added "carried" checkbox to container edit screen

Resolves #85
This commit is contained in:
Jacob
2017-09-04 15:50:57 +01:00
parent 06ac9f70c8
commit 5f35c71c9d
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}});
}
});