Fixed some error text not showing in create dialog
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
label="Name"
|
label="Name"
|
||||||
style="flex-basis: 320px;"
|
style="flex-basis: 320px;"
|
||||||
:value="model.name"
|
:value="model.name"
|
||||||
|
:error-messages="errors.name"
|
||||||
@change="(value, ack) => $emit('change', {path: ['name'], value, ack})"
|
@change="(value, ack) => $emit('change', {path: ['name'], value, ack})"
|
||||||
/>
|
/>
|
||||||
<icon-color-menu
|
<icon-color-menu
|
||||||
@@ -24,6 +25,7 @@
|
|||||||
:is="model.type"
|
:is="model.type"
|
||||||
class="creature-property-form mb-4"
|
class="creature-property-form mb-4"
|
||||||
:model="model"
|
:model="model"
|
||||||
|
:errors="errors"
|
||||||
@change="e => $emit('change', e)"
|
@change="e => $emit('change', e)"
|
||||||
@push="e => $emit('push', e)"
|
@push="e => $emit('push', e)"
|
||||||
@pull="e => $emit('pull', e)"
|
@pull="e => $emit('pull', e)"
|
||||||
@@ -47,6 +49,7 @@
|
|||||||
hint="The property type that this slot filler pretends to be when being searched for by a slot"
|
hint="The property type that this slot filler pretends to be when being searched for by a slot"
|
||||||
:items="slotTypes"
|
:items="slotTypes"
|
||||||
:value="model.slotFillerType"
|
:value="model.slotFillerType"
|
||||||
|
:error-messages="errors.slotFillerType"
|
||||||
@change="(value, ack) => $emit('change', {path: ['slotFillerType'], value, ack})"
|
@change="(value, ack) => $emit('change', {path: ['slotFillerType'], value, ack})"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -60,6 +63,7 @@
|
|||||||
min="0"
|
min="0"
|
||||||
hint="How many properties this counts as when filling a slot"
|
hint="How many properties this counts as when filling a slot"
|
||||||
:value="model.slotQuantityFilled"
|
:value="model.slotQuantityFilled"
|
||||||
|
:error-messages="errors.slotQuantityFilled"
|
||||||
@change="(value, ack) => $emit('change', {path: ['slotQuantityFilled'], value, ack})"
|
@change="(value, ack) => $emit('change', {path: ['slotQuantityFilled'], value, ack})"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -73,6 +77,7 @@
|
|||||||
hint="A caclulation to determine if this property can be added to a character"
|
hint="A caclulation to determine if this property can be added to a character"
|
||||||
placeholder="Always active"
|
placeholder="Always active"
|
||||||
:value="model.slotFillerCondition"
|
:value="model.slotFillerCondition"
|
||||||
|
:error-messages="errors.slotFillerCondition"
|
||||||
@change="(value, ack) => $emit('change', {path: ['slotFillerCondition'], value, ack})"
|
@change="(value, ack) => $emit('change', {path: ['slotFillerCondition'], value, ack})"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -86,6 +91,7 @@
|
|||||||
hint="Text to display if the condition isn't met"
|
hint="Text to display if the condition isn't met"
|
||||||
placeholder="Always active"
|
placeholder="Always active"
|
||||||
:value="model.slotFillerConditionNote"
|
:value="model.slotFillerConditionNote"
|
||||||
|
:error-messages="errors.slotFillerConditionNote"
|
||||||
@change="(value, ack) => $emit('change', {path: ['slotFillerConditionNote'], value, ack})"
|
@change="(value, ack) => $emit('change', {path: ['slotFillerConditionNote'], value, ack})"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -99,6 +105,7 @@
|
|||||||
deletable-chips
|
deletable-chips
|
||||||
hint="Used to let slots find this property in a library"
|
hint="Used to let slots find this property in a library"
|
||||||
:value="model.libraryTags"
|
:value="model.libraryTags"
|
||||||
|
:error-messages="errors.libraryTags"
|
||||||
@change="(value, ack) => $emit('change', {path: ['libraryTags'], value, ack})"
|
@change="(value, ack) => $emit('change', {path: ['libraryTags'], value, ack})"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -119,6 +126,7 @@
|
|||||||
deletable-chips
|
deletable-chips
|
||||||
hint="Tags let other properties target this property with interactions"
|
hint="Tags let other properties target this property with interactions"
|
||||||
:value="model.tags"
|
:value="model.tags"
|
||||||
|
:error-messages="errors.tags"
|
||||||
@change="(value, ack) => $emit('change', {path: ['tags'], value, ack})"
|
@change="(value, ack) => $emit('change', {path: ['tags'], value, ack})"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -229,6 +237,10 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
default: 'creatureProperties'
|
default: 'creatureProperties'
|
||||||
},
|
},
|
||||||
|
errors: {
|
||||||
|
type: Object,
|
||||||
|
default: () => ({}),
|
||||||
|
},
|
||||||
embedded: Boolean, // This dialog is embedded in a page
|
embedded: Boolean, // This dialog is embedded in a page
|
||||||
noChildInsert: Boolean, // Don't allow inserting of children in this form
|
noChildInsert: Boolean, // Don't allow inserting of children in this form
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
label="Summary"
|
label="Summary"
|
||||||
hint="This will appear in the action card in the character sheet, summarize what the action does"
|
hint="This will appear in the action card in the character sheet, summarize what the action does"
|
||||||
:model="model.summary"
|
:model="model.summary"
|
||||||
:error-messages="errors.summary"
|
:error-messages="errors['summary.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['summary', ...path], value, ack})"
|
$emit('change', {path: ['summary', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
label="Description"
|
label="Description"
|
||||||
hint="This text will be displayed in the log when the action is taken"
|
hint="This text will be displayed in the log when the action is taken"
|
||||||
:model="model.description"
|
:model="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['description', ...path], value, ack})"
|
$emit('change', {path: ['description', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
<inline-computation-field
|
<inline-computation-field
|
||||||
label="Description"
|
label="Description"
|
||||||
:model="model.description"
|
:model="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['description', ...path], value, ack})"
|
$emit('change', {path: ['description', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<inline-computation-field
|
<inline-computation-field
|
||||||
label="Description"
|
label="Description"
|
||||||
:model="model.description"
|
:model="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['description', ...path], value, ack})"
|
$emit('change', {path: ['description', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<inline-computation-field
|
<inline-computation-field
|
||||||
label="Description"
|
label="Description"
|
||||||
:model="model.description"
|
:model="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['description', ...path], value, ack})"
|
$emit('change', {path: ['description', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
label="Description"
|
label="Description"
|
||||||
hint="A brief description of what this class level gives a character"
|
hint="A brief description of what this class level gives a character"
|
||||||
:model="model.description"
|
:model="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['description', ...path], value, ack})"
|
$emit('change', {path: ['description', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
class="mt-4"
|
class="mt-4"
|
||||||
label="Description"
|
label="Description"
|
||||||
:model="model.description"
|
:model="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['description', ...path], value, ack})"
|
$emit('change', {path: ['description', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
label="Summary"
|
label="Summary"
|
||||||
hint="This will appear in the feature card in the character sheet"
|
hint="This will appear in the feature card in the character sheet"
|
||||||
:model="model.summary"
|
:model="model.summary"
|
||||||
:error-messages="errors.summary"
|
:error-messages="errors['summary.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['summary', ...path], value, ack})"
|
$emit('change', {path: ['summary', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
label="Description"
|
label="Description"
|
||||||
hint="The rest of the description that doesn't fit in the summary goes here"
|
hint="The rest of the description that doesn't fit in the summary goes here"
|
||||||
:model="model.description"
|
:model="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['description', ...path], value, ack})"
|
$emit('change', {path: ['description', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
<inline-computation-field
|
<inline-computation-field
|
||||||
label="Description"
|
label="Description"
|
||||||
:model="model.description"
|
:model="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['description', ...path], value, ack})"
|
$emit('change', {path: ['description', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
label="Summary"
|
label="Summary"
|
||||||
hint="This will appear in the card in the character sheet"
|
hint="This will appear in the card in the character sheet"
|
||||||
:model="model.summary"
|
:model="model.summary"
|
||||||
:error-messages="errors.summary"
|
:error-messages="errors['summary.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['summary', ...path], value, ack})"
|
$emit('change', {path: ['summary', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
label="Description"
|
label="Description"
|
||||||
hint="Text that does not fit in the summary"
|
hint="Text that does not fit in the summary"
|
||||||
:model="model.description"
|
:model="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['description', ...path], value, ack})"
|
$emit('change', {path: ['description', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
<inline-computation-field
|
<inline-computation-field
|
||||||
label="Description"
|
label="Description"
|
||||||
:model="model.description"
|
:model="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['description', ...path], value, ack})"
|
$emit('change', {path: ['description', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<text-area
|
<text-area
|
||||||
label="Description"
|
label="Description"
|
||||||
:value="model.description"
|
:value="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="change('description', ...arguments)"
|
@change="change('description', ...arguments)"
|
||||||
/>
|
/>
|
||||||
<form-sections
|
<form-sections
|
||||||
|
|||||||
@@ -100,7 +100,7 @@
|
|||||||
<inline-computation-field
|
<inline-computation-field
|
||||||
label="Description"
|
label="Description"
|
||||||
:model="model.description"
|
:model="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['description', ...path], value, ack})"
|
$emit('change', {path: ['description', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -220,14 +220,14 @@
|
|||||||
label="Summary"
|
label="Summary"
|
||||||
hint="This will appear in the action card in the character sheet, summarise what the action does"
|
hint="This will appear in the action card in the character sheet, summarise what the action does"
|
||||||
:model="model.summary"
|
:model="model.summary"
|
||||||
:error-messages="errors.summary"
|
:error-messages="errors['summary.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['summary', ...path], value, ack})"
|
$emit('change', {path: ['summary', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
<inline-computation-field
|
<inline-computation-field
|
||||||
label="Description"
|
label="Description"
|
||||||
:model="model.description"
|
:model="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['description', ...path], value, ack})"
|
$emit('change', {path: ['description', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
<inline-computation-field
|
<inline-computation-field
|
||||||
label="Description"
|
label="Description"
|
||||||
:model="model.description"
|
:model="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['description', ...path], value, ack})"
|
$emit('change', {path: ['description', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
label="Description"
|
label="Description"
|
||||||
hint="The rest of the description that doesn't fit in the summary goes here"
|
hint="The rest of the description that doesn't fit in the summary goes here"
|
||||||
:model="model.description"
|
:model="model.description"
|
||||||
:error-messages="errors.description"
|
:error-messages="errors['description.text']"
|
||||||
@change="({path, value, ack}) =>
|
@change="({path, value, ack}) =>
|
||||||
$emit('change', {path: ['description', ...path], value, ack})"
|
$emit('change', {path: ['description', ...path], value, ack})"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user