Fixed saving throw fields that weren't working, added name to saving throws
This commit is contained in:
@@ -3,6 +3,10 @@ import SimpleSchema from 'simpl-schema';
|
||||
// These are the rolls made when saves are called for
|
||||
// For the saving throw bonus or proficiency, see ./Skills.js
|
||||
let SavingThrowSchema = new SimpleSchema ({
|
||||
name: {
|
||||
type: String,
|
||||
optional: true,
|
||||
},
|
||||
dc: {
|
||||
type: String,
|
||||
optional: true,
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
<template lang="html">
|
||||
<div class="saving-throw-form">
|
||||
<text-field
|
||||
label="Name"
|
||||
:value="model.name"
|
||||
:error-messages="errors.name"
|
||||
@change="change('name', ...arguments)"
|
||||
/>
|
||||
<text-field
|
||||
label="DC"
|
||||
:value="model.dc"
|
||||
@@ -9,10 +15,10 @@
|
||||
<smart-combobox
|
||||
label="Save"
|
||||
hint="Which save the saving throw targets"
|
||||
:value="model.ability"
|
||||
:value="model.stat"
|
||||
:items="saveList"
|
||||
:error-messages="errors.ability"
|
||||
@change="change('ability', ...arguments)"
|
||||
:error-messages="errors.stat"
|
||||
@change="change('stat', ...arguments)"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user