Added cascading deletions
This commit is contained in:
@@ -7,11 +7,15 @@ Template.effectsEditList.helpers({
|
||||
|
||||
Template.effectsEditList.events({
|
||||
"tap #addEffectButton": function(){
|
||||
if ( !_.isBoolean(this.enabled) ) {
|
||||
this.enabled = true;
|
||||
}
|
||||
Effects.insert({
|
||||
charId: this.charId,
|
||||
sourceId: this.sourceId,
|
||||
operation: "add",
|
||||
type: this.type
|
||||
type: this.type,
|
||||
enabled: this.enabled
|
||||
});
|
||||
},
|
||||
});
|
||||
@@ -56,7 +56,7 @@
|
||||
</paper-autogrow-textarea>
|
||||
</paper-input-decorator>
|
||||
<!--Effects-->
|
||||
{{> effectsEditList sourceId=_id charId=charId type="equipment"}}
|
||||
{{> effectsEditList sourceId=_id charId=charId type="equipment" enabled=equipped}}
|
||||
{{/baseDialog}}
|
||||
{{/with}}
|
||||
</template>
|
||||
Reference in New Issue
Block a user