|
@ -1,7 +1,8 @@ |
|
|
<template> |
|
|
<template> |
|
|
|
|
|
|
|
|
<div class="treenode-org"> |
|
|
<div class="treenode-org"> |
|
|
<b v-if="v_tematku">ubvoueab</b> |
|
|
<b v-if="v_tematku">v tematu</b> |
|
|
|
|
|
<b v-if="visible">visible</b> |
|
|
<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'></component> |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -25,7 +26,8 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div v-for="(chld, index) in item.children" v-bind:key="chld.nazev" > |
|
|
<div v-for="(chld, index) in item.children" v-bind:key="chld.nazev" > |
|
|
<TreeNode :item="chld" :v_tematku="item.node.polymorphic_ctype.model==='temavcislenode'||v_tematku"> |
|
|
<TreeNode :item="chld" :v_tematku="item.node.polymorphic_ctype.model==='temavcislenode'||v_tematku" |
|
|
|
|
|
:visible="!v_tematku||item.node.polymorphic_ctype.model==='ulohazadaninode'"> |
|
|
</TreeNode> |
|
|
</TreeNode> |
|
|
<div v-if="chld.appendable_siblings.length > 0" class="mam-org-only" > |
|
|
<div v-if="chld.appendable_siblings.length > 0" class="mam-org-only" > |
|
|
<b v-if="index < (item.children.length - 1)">Vložit mezi: </b> |
|
|
<b v-if="index < (item.children.length - 1)">Vložit mezi: </b> |
|
|