Added forms for Class level, damage multiplier, experience, folder, note, proficiency

This commit is contained in:
Stefan Zermatten
2019-07-23 11:28:26 +02:00
parent 946b47ea61
commit 1bfb48c672
18 changed files with 604 additions and 33 deletions

View File

@@ -15,7 +15,7 @@ import updateSchemaMixin from '/imports/api/creature/mixins/updateSchemaMixin.js
let Experiences = new Mongo.Collection("experience");
let ExperienceSchema = schema({
name: {
title: {
type: String,
optional: true,
},
@@ -33,11 +33,9 @@ let ExperienceSchema = schema({
date: {
type: Date,
autoValue: function() {
// If the date isn't set, set it to now on insert
if (this.isInsert && !this.isSet) {
// If the date isn't set, set it to now
if (!this.isSet) {
return new Date();
} else if (this.isUpsert && !this.isSet) {
return {$setOnInsert: new Date()};
}
},
},