+
@@ -29,7 +29,10 @@
computed: {
isDark(){
return isDarkColor(this.color);
- }
+ },
+ hasClickListener(){
+ return this.$listeners && !!this.$listeners.click
+ },
}
};
diff --git a/app/imports/ui/components/features/FeatureCard.vue b/app/imports/ui/components/features/FeatureCard.vue
index a47cb459..16e7824b 100644
--- a/app/imports/ui/components/features/FeatureCard.vue
+++ b/app/imports/ui/components/features/FeatureCard.vue
@@ -1,17 +1,18 @@
-
-
- {{name}}
-
-
- $emit('change', {enabled})"
- slot="toolbar"
- />
+
+
+
+ {{name}}
+
+
+
+
{{description}}
@@ -23,6 +24,7 @@
export default {
props: {
+ _id: String,
charId: String,
name: String,
description: String,
@@ -33,6 +35,7 @@
components: {
ToolbarCard,
},
+
};
diff --git a/app/imports/ui/components/features/FeatureCreationDialog.vue b/app/imports/ui/components/features/FeatureCreationDialog.vue
index 6a021aae..29d59e20 100644
--- a/app/imports/ui/components/features/FeatureCreationDialog.vue
+++ b/app/imports/ui/components/features/FeatureCreationDialog.vue
@@ -3,7 +3,7 @@
documentType="Feature"
:doc="feature"
:schema="schema"
- @updateErrors="newErrors => errors = newErrors"
+ :errors.sync="errors"
>
-
-
- {{name}}
-
+
- {{description}}
+ {{feature.description}}
+
-
- $emit('change', update, ack)"
- />
-
-
+ $emit('update', update, ack)"/>
+
diff --git a/app/imports/ui/components/properties/PropertyDialog.vue b/app/imports/ui/components/properties/PropertyDialog.vue
new file mode 100644
index 00000000..bcc7d2fa
--- /dev/null
+++ b/app/imports/ui/components/properties/PropertyDialog.vue
@@ -0,0 +1,28 @@
+
+
+
+
+ {{doc.name}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/imports/ui/components/properties/PropertyDialogContainer.vue b/app/imports/ui/components/properties/PropertyDialogContainer.vue
deleted file mode 100644
index 2d97a0fc..00000000
--- a/app/imports/ui/components/properties/PropertyDialogContainer.vue
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
- {{doc.name}}
-
-
-
-
-
-
-
-
-
-
diff --git a/app/imports/ui/components/properties/PropertyInsertDialog.vue b/app/imports/ui/components/properties/PropertyInsertDialog.vue
index bf767eb9..bbd6c154 100644
--- a/app/imports/ui/components/properties/PropertyInsertDialog.vue
+++ b/app/imports/ui/components/properties/PropertyInsertDialog.vue
@@ -52,7 +52,7 @@ export default {
if (this.valid) this.valid = false;
errors[error.name] = this.schema.messageForError(error);
});
- this.$emit('updateErrors', errors);
+ this.$emit('update:errors', errors);
},
deep: true,
},
diff --git a/app/imports/ui/dialogStack/DialogBase.vue b/app/imports/ui/dialogStack/DialogBase.vue
index 400c8442..8a42574c 100644
--- a/app/imports/ui/dialogStack/DialogBase.vue
+++ b/app/imports/ui/dialogStack/DialogBase.vue
@@ -7,7 +7,7 @@
- $emit('delete')" v-if="isEditing">
+
delete
diff --git a/app/imports/ui/dialogStack/DialogComponentIndex.js b/app/imports/ui/dialogStack/DialogComponentIndex.js
index cc8f3215..8c7ffe0b 100644
--- a/app/imports/ui/dialogStack/DialogComponentIndex.js
+++ b/app/imports/ui/dialogStack/DialogComponentIndex.js
@@ -2,6 +2,7 @@ import AttributeDialog from '/imports/ui/components/attributes/AttributeDialog.v
import AttributeDialogContainer from '/imports/ui/components/attributes/AttributeDialogContainer.vue';
import AttributeCreationDialog from '/imports/ui/components/attributes/AttributeCreationDialog.vue';
import FeatureCreationDialog from '/imports/ui/components/features/FeatureCreationDialog.vue';
+import FeatureDialogContainer from '/imports/ui/components/features/FeatureDialogContainer.vue';
import SkillDialogContainer from '/imports/ui/components/skills/SkillDialogContainer.vue';
export default {
@@ -9,5 +10,6 @@ export default {
AttributeDialogContainer,
AttributeCreationDialog,
FeatureCreationDialog,
+ FeatureDialogContainer,
SkillDialogContainer,
};
diff --git a/app/imports/ui/dialogStack/dialogStackStore.js b/app/imports/ui/dialogStack/dialogStackStore.js
index da374742..c5406a26 100644
--- a/app/imports/ui/dialogStack/dialogStackStore.js
+++ b/app/imports/ui/dialogStack/dialogStackStore.js
@@ -20,6 +20,19 @@ const dialogStackStore = {
});
updateHistory();
},
+ replaceDialog(stat, {component, data, elementId, callback}){
+ const _id = Random.id();
+ if (!state.dialogs.length){
+ throw new Meteor.Error("can't replace dialog if no dialogs are open");
+ }
+ state.dialogs.$set(0, {
+ _id,
+ component,
+ data,
+ elementId,
+ callback,
+ });
+ },
popDialogStackMutation (state, result){
const dialog = state.dialogs.pop();
state.currentResult = null;
diff --git a/app/package-lock.json b/app/package-lock.json
index 73542f7e..9e014a4c 100644
--- a/app/package-lock.json
+++ b/app/package-lock.json
@@ -1,5 +1,5 @@
{
- "name": "rpg-docs",
+ "name": "dicecloud",
"version": "0.10.0",
"lockfileVersion": 1,
"requires": true,