diff --git a/app/imports/api/creature/CreatureProperties.js b/app/imports/api/creature/CreatureProperties.js
index a87d96b9..829464a7 100644
--- a/app/imports/api/creature/CreatureProperties.js
+++ b/app/imports/api/creature/CreatureProperties.js
@@ -146,7 +146,7 @@ const insertPropertyFromLibraryNode = new ValidatedMethod({
const updateProperty = new ValidatedMethod({
name: 'CreatureProperties.methods.update',
- validate({_id, path, value, ack}){
+ validate({_id, path, value}){
if (!_id) return false;
// We cannot change these fields with a simple update
switch (path[0]){
diff --git a/app/imports/api/properties/Features.js b/app/imports/api/properties/Features.js
index 6b8c94ac..6c9d0545 100644
--- a/app/imports/api/properties/Features.js
+++ b/app/imports/api/properties/Features.js
@@ -8,10 +8,6 @@ let FeatureSchema = new SimpleSchema({
type: String,
optional: true,
},
- alwaysEnabled: {
- type: Boolean,
- defaultValue: true
- },
});
export { FeatureSchema }
diff --git a/app/imports/ui/creature/character/characterSheetTabs/FeaturesTab.vue b/app/imports/ui/creature/character/characterSheetTabs/FeaturesTab.vue
index 7eda4e08..9805ec50 100644
--- a/app/imports/ui/creature/character/characterSheetTabs/FeaturesTab.vue
+++ b/app/imports/ui/creature/character/characterSheetTabs/FeaturesTab.vue
@@ -5,7 +5,6 @@
@@ -33,7 +32,6 @@
let char = Creatures.findOne(this.creatureId, {fields: {variables: 1}});
if (!char) return [];
let vars = char.variables;
- console.log('finding features for', this.creatureId);
return CreatureProperties.find({
'ancestors.id': this.creatureId,
type: 'feature',
@@ -41,27 +39,17 @@
}, {
sort: {order: 1},
}).map(f => {
- console.log(f);
f.description = evaluateStringWithVariables(f.description, vars);
return f;
});
},
},
methods: {
- updateFeature({_id, update}, ack){
- updateFeature.call({_id, update}, error => {
- if (ack){
- ack(error);
- } else if(error) {
- throw error;
- }
- });
- },
- featureClicked(feature){
+ featureClicked({_id}){
this.$store.commit('pushDialogStack', {
- component: 'feature-dialog-container',
- elementId: feature._id,
- data: {_id: feature._id},
+ component: 'creature-property-dialog',
+ elementId: `${_id}`,
+ data: {_id},
});
},
},
diff --git a/app/imports/ui/properties/components/features/FeatureCard.vue b/app/imports/ui/properties/components/features/FeatureCard.vue
index 2a23e40a..155de037 100644
--- a/app/imports/ui/properties/components/features/FeatureCard.vue
+++ b/app/imports/ui/properties/components/features/FeatureCard.vue
@@ -5,13 +5,6 @@
{{name}}
-
@@ -26,12 +19,9 @@
export default {
props: {
_id: String,
- charId: String,
name: String,
description: String,
color: String,
- enabled: Boolean,
- alwaysEnabled: Boolean,
},
components: {
MarkdownText,
diff --git a/app/imports/ui/properties/forms/FeatureForm.vue b/app/imports/ui/properties/forms/FeatureForm.vue
index ade4acb8..1610afc6 100644
--- a/app/imports/ui/properties/forms/FeatureForm.vue
+++ b/app/imports/ui/properties/forms/FeatureForm.vue
@@ -7,6 +7,7 @@
:error-messages="errors.name"
:debounce-time="debounceTime"
/>
+