Fixed saving throw fields that weren't working, added name to saving throws

This commit is contained in:
Thaum Rystra
2020-05-28 12:29:41 +02:00
parent a41b267364
commit 1c26b7717c
2 changed files with 13 additions and 3 deletions

View File

@@ -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,

View File

@@ -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>