diff --git a/app/imports/api/docs/Docs.js b/app/imports/api/docs/Docs.js
index b9fa1e4f..cb8aeb4e 100644
--- a/app/imports/api/docs/Docs.js
+++ b/app/imports/api/docs/Docs.js
@@ -145,7 +145,7 @@ if (Meteor.isClient) {
} else if (Meteor.isServer) {
Meteor.startup(() => {
if (!Docs.findOne()) {
- Assets.getText('docs/defaultDocs.json', (string) => {
+ Assets.getText('docs/defaultDocs.json', (error, string) => {
const docs = JSON.parse(string)
docs.forEach(doc => Docs.insert(doc));
});
diff --git a/app/imports/client/ui/components/global/DragHandle.vue b/app/imports/client/ui/components/global/DragHandle.vue
new file mode 100644
index 00000000..8c06cc0f
--- /dev/null
+++ b/app/imports/client/ui/components/global/DragHandle.vue
@@ -0,0 +1,45 @@
+
+ { }"
+ @touchstart.native.stop="() => { }"
+ @touchend.native="portalEvent"
+ >
+ mdi-drag
+
+
+
+
+
+
+
+
diff --git a/app/imports/client/ui/components/global/globalIndex.js b/app/imports/client/ui/components/global/globalIndex.js
index bb0898d5..f7e48b3e 100644
--- a/app/imports/client/ui/components/global/globalIndex.js
+++ b/app/imports/client/ui/components/global/globalIndex.js
@@ -1,6 +1,7 @@
import Vue from 'vue';
// Global components
import DatePicker from '/imports/client/ui/components/global/DatePicker.vue';
+import DragHandle from '/imports/client/ui/components/global/DragHandle.vue';
import IconPicker from '/imports/client/ui/components/global/IconPicker.vue';
import TextField from '/imports/client/ui/components/global/TextField.vue';
import TextArea from '/imports/client/ui/components/global/TextArea.vue';
@@ -13,6 +14,7 @@ import SvgIcon from '/imports/client/ui/components/global/SvgIcon.vue';
import SmartSlider from '/imports/client/ui/components/global/SmartSlider.vue';
Vue.component('DatePicker', DatePicker);
+Vue.component('DragHandle', DragHandle);
Vue.component('IconPicker', IconPicker);
Vue.component('TextField', TextField);
Vue.component('TextArea', TextArea);
diff --git a/app/imports/client/ui/components/tree/TreeNode.vue b/app/imports/client/ui/components/tree/TreeNode.vue
index 2a8ee46e..9ef46561 100644
--- a/app/imports/client/ui/components/tree/TreeNode.vue
+++ b/app/imports/client/ui/components/tree/TreeNode.vue
@@ -30,14 +30,12 @@
:class="{'ml-4': startExpanded}"
style="flex-grow: 0;"
>
-
- mdi-drag
-
+ />
$emit('selected', e)"
@reordered="e => $emit('reordered', e)"
@reorganized="e => $emit('reorganized', e)"
- @dragstart.native="e => e.dataTransfer.setData('cow', child.node && child.node.name)"
/>
diff --git a/app/imports/client/ui/creature/creatureList/CreatureListTile.vue b/app/imports/client/ui/creature/creatureList/CreatureListTile.vue
index ee9a7d95..2685ff13 100644
--- a/app/imports/client/ui/creature/creatureList/CreatureListTile.vue
+++ b/app/imports/client/ui/creature/creatureList/CreatureListTile.vue
@@ -40,12 +40,9 @@
-
- mdi-drag
-
+
diff --git a/app/imports/client/ui/properties/components/inventory/ItemListTile.vue b/app/imports/client/ui/properties/components/inventory/ItemListTile.vue
index cf252ddc..839db61d 100644
--- a/app/imports/client/ui/properties/components/inventory/ItemListTile.vue
+++ b/app/imports/client/ui/properties/components/inventory/ItemListTile.vue
@@ -33,13 +33,10 @@
/>
-
- mdi-drag
-
+ />
diff --git a/app/imports/client/ui/properties/components/spells/SpellListTile.vue b/app/imports/client/ui/properties/components/spells/SpellListTile.vue
index 6c47536f..2b20c73f 100644
--- a/app/imports/client/ui/properties/components/spells/SpellListTile.vue
+++ b/app/imports/client/ui/properties/components/spells/SpellListTile.vue
@@ -29,14 +29,11 @@
@click.native.stop="() => {}"
@change="setPrepared"
/>
-
- mdi-drag
-
+ />