Commit 982c9204 authored by Anton's avatar Anton

Make annotation input optional

parent b26b7505
......@@ -155,6 +155,16 @@
value: '',
path: 'content'
},
{
inputType: 'number',
type: 'Annotation-List',
label: 'Add annotations',
help: 'Allow user to add more annotations (0 or 1)',
error: false,
errorMessage: '',
value: 0,
path: 'allow_annotations'
},
{
inputType: 'number',
type: 'Annotation-List',
......
......@@ -10,7 +10,7 @@
template(v-for="(annot, index) in annotations")
q-item-separator(v-if="index > 0")
template(v-if="staging && $store.state.auth.user && showAnnotationInput(index)")
template(v-if="cell.allow_annotations && $store.state.auth.user && showAnnotationInput(index)")
q-item.annotation-input-container
q-input.annotation-input(type="textarea",
:max-height="200",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment