Notes now have a summary and a description, some data migration my be needed

This commit is contained in:
Stefan Zermatten
2021-02-12 11:44:03 +02:00
parent a078ce3d5d
commit 3e6221309e
3 changed files with 19 additions and 2 deletions

View File

@@ -6,6 +6,10 @@ let NoteSchema = new SimpleSchema({
type: String,
optional: true,
},
summary: {
type: String,
optional: true,
},
description: {
type: String,
optional: true,

View File

@@ -12,8 +12,8 @@
</v-card-title>
<v-card-text>
<property-description
:string="model.description"
:calculations="model.descriptionCalculations"
:string="model.summary"
:calculations="model.summaryCalculations"
:inactive="model.inactive"
/>
</v-card-text>

View File

@@ -7,12 +7,25 @@
:error-messages="errors.name"
@change="change('name', ...arguments)"
/>
<text-area
label="Summary"
hint="This will appear in the action card in the character sheet"
:value="model.summary"
:error-messages="errors.summary"
@change="change('summary', ...arguments)"
/>
<calculation-error-list :calculations="model.summaryCalculations" />
<text-area
label="Description"
:value="model.description"
:error-messages="errors.description"
@change="change('description', ...arguments)"
/>
<calculation-error-list :calculations="model.descriptionCalculations" />
<smart-combobox
label="Tags"
multiple