|
|
@ -4,10 +4,12 @@ |
|
|
|
<!--b v-if="v_tematu">v tematu</b> |
|
|
|
<b v-if="visible">visible</b> |
|
|
|
Force visible: {{String(force_visible)}}--> |
|
|
|
<component :is='item.node.polymorphic_ctype.model' :item='item' :key='item.node.id'></component> |
|
|
|
<component :is='item.node.polymorphic_ctype.model' :item='item' :key='item.node.id' |
|
|
|
:editorMode="editorMode" |
|
|
|
:debugMode="debugMode"></component> |
|
|
|
|
|
|
|
|
|
|
|
<button v-on:click="debugShow = !debugShow" class="nodebug">Ladící data</button> <!-- bude tu nějaký if na class="nodebug", v debug módu bude tlačítko vidět, jinak ne --> |
|
|
|
<button v-if="debugMode" v-on:click="debugShow = !debugShow" class="nodebug">Ladící data</button> <!-- bude tu nějaký if na class="nodebug", v debug módu bude tlačítko vidět, jinak ne --> |
|
|
|
<div v-if="debugShow"> |
|
|
|
<pre>{{ item.node.polymorphic_ctype.model }}</pre> |
|
|
|
<pre>{{ item }}</pre> |
|
|
@ -33,12 +35,16 @@ |
|
|
|
<div v-if="chld.node.polymorphic_ctype.model==='ulohazadaninode'"> |
|
|
|
<button v-on:click="showChildren=!showChildren"> Tady možná něco je </button> |
|
|
|
<TreeNode :item="chld" :v_tematu="true" |
|
|
|
:force_visible="showChildren"> |
|
|
|
:force_visible="showChildren" |
|
|
|
:editorMode="editorMode" |
|
|
|
:debugMode="debugMode"> |
|
|
|
</TreeNode> |
|
|
|
</div> |
|
|
|
<div v-else> |
|
|
|
<TreeNode :item="chld" :v_tematu="true" |
|
|
|
:force_visible="showChildren"> |
|
|
|
:force_visible="showChildren" |
|
|
|
:editorMode="editorMode" |
|
|
|
:debugMode="debugMode"> |
|
|
|
</TreeNode> |
|
|
|
</div> |
|
|
|
<div v-if="chld.appendable_siblings.length > 0" class="mam-org-only" > |
|
|
@ -55,12 +61,16 @@ |
|
|
|
<div v-if="v_tematu && chld.node.polymorphic_ctype.model==='ulohazadaninode'"> |
|
|
|
<div> Tady možná něco je </div> |
|
|
|
<TreeNode :item="chld" :v_tematu="v_tematu" |
|
|
|
:force_visible="force_visible"> |
|
|
|
:force_visible="force_visible" |
|
|
|
:editorMode="editorMode" |
|
|
|
:debugMode="debugMode"> |
|
|
|
</TreeNode> |
|
|
|
</div> |
|
|
|
<div v-else> |
|
|
|
<TreeNode :item="chld" :v_tematu="v_tematu" |
|
|
|
:force_visible="force_visible"> |
|
|
|
:force_visible="force_visible" |
|
|
|
:editorMode="editorMode" |
|
|
|
:debugMode="debugMode"> |
|
|
|
</TreeNode> |
|
|
|
</div> |
|
|
|
<div v-if="chld.appendable_siblings.length > 0" class="mam-org-only" > |
|
|
@ -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){ |
|
|
|