diff --git a/app/imports/ui/creature/creatureProperties/CreaturePropertyInsertForm.vue b/app/imports/ui/creature/creatureProperties/CreaturePropertyInsertForm.vue index e48bc2fe..e682fc7d 100644 --- a/app/imports/ui/creature/creatureProperties/CreaturePropertyInsertForm.vue +++ b/app/imports/ui/creature/creatureProperties/CreaturePropertyInsertForm.vue @@ -3,7 +3,6 @@
Add {{propertyName}}
import BuffForm from '/imports/ui/properties/forms/BuffForm.vue'; - import {StoredBuffSchema, AppliedBuffSchema} from '/imports/api/properties/Buffs.js'; + import { StoredBuffSchema } from '/imports/api/properties/Buffs.js'; export default { components: { BuffForm, }, props: { - stored: Boolean, model: { type: Array, default: () => ([]), @@ -66,8 +65,7 @@ }, addBuff(){ this.addBuffLoading = true; - let schema = this.stored ? StoredBuffSchema : AppliedBuffSchema; - this.$emit('push', {path: [], value: schema.clean({}), ack: this.acknowledgeAddBuff}); + this.$emit('push', {path: [], value: StoredBuffSchema.clean({}), ack: this.acknowledgeAddBuff}); }, }, } diff --git a/app/imports/ui/properties/forms/shared/propertyFormIndex.js b/app/imports/ui/properties/forms/shared/propertyFormIndex.js index 65547588..cf07ddef 100644 --- a/app/imports/ui/properties/forms/shared/propertyFormIndex.js +++ b/app/imports/ui/properties/forms/shared/propertyFormIndex.js @@ -1,6 +1,7 @@ import ActionForm from '/imports/ui/properties/forms/ActionForm.vue'; import AttackForm from '/imports/ui/properties/forms/AttackForm.vue'; import AttributeForm from '/imports/ui/properties/forms/AttributeForm.vue'; +import BuffForm from '/imports/ui/properties/forms/BuffForm.vue'; import ContainerForm from '/imports/ui/properties/forms/ContainerForm.vue'; import ClassLevelForm from '/imports/ui/properties/forms/ClassLevelForm.vue'; import DamageMultiplierForm from '/imports/ui/properties/forms/DamageMultiplierForm.vue'; @@ -21,6 +22,7 @@ export default { action: ActionForm, attack: AttackForm, attribute: AttributeForm, + buff: BuffForm, container: ContainerForm, classLevel: ClassLevelForm, damageMultiplier: DamageMultiplierForm,