From 1ba52cb397204b7b559f64225260d06eea1d5dea Mon Sep 17 00:00:00 2001 From: Tomas 'Jethro' Pokorny Date: Tue, 3 Nov 2020 21:09:33 +0100 Subject: [PATCH] treenode | Added editMode and debugMode properties. --- vue_frontend/src/components/TextNode.vue | 15 +++++------ vue_frontend/src/components/TreeNode.vue | 26 ++++++++++++++------ vue_frontend/src/components/TreeNodeRoot.vue | 14 ++++++++--- 3 files changed, 36 insertions(+), 19 deletions(-) diff --git a/vue_frontend/src/components/TextNode.vue b/vue_frontend/src/components/TextNode.vue index f6e81fcc..aaa02fdb 100644 --- a/vue_frontend/src/components/TextNode.vue +++ b/vue_frontend/src/components/TextNode.vue @@ -10,22 +10,20 @@
- -
- - -
+
+ +
@@ -47,9 +45,7 @@ export default { extraPlugins: ['SimpleUploadAdapter'], simpleUpload: { uploadUrl: "/temp/image_upload/", - headers: { - "test":"testh" - }, + headers: {}, withCredentials: true } // The configuration of the editor. @@ -81,6 +77,7 @@ export default { props: { item: Object, editorShow: Boolean, + editorMode: Boolean, create: Boolean, where: String, refnode: Object diff --git a/vue_frontend/src/components/TreeNode.vue b/vue_frontend/src/components/TreeNode.vue index 196f899d..6626f699 100644 --- a/vue_frontend/src/components/TreeNode.vue +++ b/vue_frontend/src/components/TreeNode.vue @@ -4,10 +4,12 @@ - + - +
{{ item.node.polymorphic_ctype.model }}
{{ item }}
@@ -33,12 +35,16 @@
+ :force_visible="showChildren" + :editorMode="editorMode" + :debugMode="debugMode">
+ :force_visible="showChildren" + :editorMode="editorMode" + :debugMode="debugMode">
@@ -55,12 +61,16 @@
Tady možná něco je
+ :force_visible="force_visible" + :editorMode="editorMode" + :debugMode="debugMode">
+ :force_visible="force_visible" + :editorMode="editorMode" + :debugMode="debugMode">
@@ -107,7 +117,9 @@ export default { props: { item: Object, force_visible: Boolean, - v_tematu: Boolean + v_tematu: Boolean, + editorMode: Boolean, + debugMode: Boolean, }, methods: { hideNode: function(chld){ diff --git a/vue_frontend/src/components/TreeNodeRoot.vue b/vue_frontend/src/components/TreeNodeRoot.vue index fd70a028..e62a85b4 100644 --- a/vue_frontend/src/components/TreeNodeRoot.vue +++ b/vue_frontend/src/components/TreeNodeRoot.vue @@ -6,7 +6,11 @@ - + + + + +
@@ -21,10 +25,14 @@ export default { data: () => ({ loading: true, item: null, - tnid: 1 + tnid: 1, + editorMode: false, + debugMode: false, }), props:{ - tnid: Number + tnid: Number, + editorMode: Boolean, + debugMode: Boolean, }, mounted: function() { this.getArticles();