diff --git a/vue_frontend/src/components/TreeNode.vue b/vue_frontend/src/components/TreeNode.vue index 2c18a248..196f899d 100644 --- a/vue_frontend/src/components/TreeNode.vue +++ b/vue_frontend/src/components/TreeNode.vue @@ -1,8 +1,9 @@ @@ -64,11 +100,25 @@ export default { }, data: () => ({ debugShow: false, + showChildren: false, }), + computed: { + }, props: { item: Object, - visible: Boolean, - v_tematku: Boolean + force_visible: Boolean, + v_tematu: Boolean + }, + methods: { + hideNode: function(chld){ + if (this.showChildren || this.force_visible){ + return false; + } + if (chld.node.polymorphic_ctype.model === 'ulohazadaninode'){ + return false; + } + return true; + } } }