Added labels to temporary hitpoints
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<!-- data just needs charId -->
|
||||
<template name="addTHPDialog">
|
||||
<div style="width: 200px; height: 100px;">
|
||||
<div style="width: 200px; height: 150px;">
|
||||
<paper-input id="nameInput" label="Label"></paper-input>
|
||||
<paper-input-decorator label="Quantity" floatinglabel>
|
||||
<input autoFocus id="quantityInput" type="number" value="10">
|
||||
</paper-input-decorator>
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
Template.addTHPDialog.events({
|
||||
'tap #addButton': function(event, instance){
|
||||
console.log({
|
||||
charId: this.charId,
|
||||
maximum: +instance.find('#quantityInput').value,
|
||||
deleteOnZero: !!instance.find('#deleteWhenZeroCheckbox').checked
|
||||
});
|
||||
TemporaryHitPoints.insert({
|
||||
charId: this.charId,
|
||||
name: instance.find('#nameInput').value,
|
||||
maximum: +instance.find('#quantityInput').value,
|
||||
deleteOnZero: !!instance.find('#deleteWhenZeroCheckbox').checked
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user