Skip to content
Snippets Groups Projects
Commit ef3e22fe authored by Ron Lucke's avatar Ron Lucke Committed by Marcus Eibrink-Lunzenauer
Browse files

fix #718

parent c9b24121
No related branches found
No related tags found
No related merge requests found
<template> <template>
<li> <li v-if="showItem">
<div <div
:class="[ :class="[
isRoot ? 'cw-tree-item-is-root' : '', isRoot ? 'cw-tree-item-is-root' : '',
...@@ -168,6 +168,16 @@ export default { ...@@ -168,6 +168,16 @@ export default {
return ''; return '';
}, },
isTask() {
return this.element.attributes.purpose === 'task';
},
showItem() {
if (this.isTask) {
return this.task !== undefined;
}
return true;
}
}, },
methods: { methods: {
...mapActions({ ...mapActions({
......
...@@ -1076,7 +1076,7 @@ export const actions = { ...@@ -1076,7 +1076,7 @@ export const actions = {
}, },
}, },
{ root: true } { root: true }
); ).catch(error => console.debug(error));
}, },
async updateTask({ dispatch }, { attributes, taskId }) { async updateTask({ dispatch }, { attributes, taskId }) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment