Commit 6f832703 authored by Anton's avatar Anton

Fix saving of annotation list display setting

parent b9592af2
......@@ -211,25 +211,35 @@
value: undefined,
path: 'regexp'
},
// {
// inputType: 'select',
// type: 'Annotation-List',
// label: 'Display type',
// help: '',
// error: false,
// errorMessage: '',
// value: 'scroll-list',
// path: 'displayType',
// selectOptions: [
// {
// label: 'Scroll List',
// value: 'scroll-list'
// },
// {
// label: 'Tab List',
// value: 'tabs'
// }
// ]
// }
{
inputType: 'select',
inputType: 'text',
type: 'Annotation-List',
label: 'Display type',
help: '',
help: 'Either "scroll-list" or "tabs"',
error: false,
errorMessage: '',
value: 'scroll-list',
path: 'displayType',
selectOptions: [
{
label: 'Scroll List',
value: 'scroll-list'
},
{
label: 'Tab List',
value: 'tabs'
}
]
value: undefined,
path: 'displayType'
}]
}
}
......
......@@ -7,8 +7,7 @@
//q-list-header
q-item {{videoMeta.title}}
// should be => template(v-if="cell.displayType ==='tabs'")
template(v-if="displayType ==='tabs'")
template(v-if="cell.displayType ==='tabs'")
.annotation-tabs-container.column
.annotation-tab(
v-for="(annotation, index) in annotations",
......@@ -20,9 +19,9 @@
q-item.annotation(v-for="(annotation, index) in annotations", v-show="index === activeTabIdx")
div
.date {{formatSelectorForList(annotation)}}
div {{annotation.body.value}}
markdown-display.content(:content="annotation.body.value")
template(v-if="displayType ==='scroll-list'")
template(v-else)
template(v-for="(annotation, index) in annotations")
q-item-separator(v-if="index > 0")
......@@ -38,12 +37,12 @@
stack-label="Leave Comment")
q-item-separator
q-item.annotation
a(:class="{'active': isAnnotationActive(annotation, index)}",
@click.prevent="event => {handleAnnotationClick(event, annotation, index)}")
.row.no-wrap
.date {{formatSelectorForList(annotation)}}
markdown-display.content(:content="annotation.body.value")
q-item.annotation
a(:class="{'active': isAnnotationActive(annotation, index)}",
@click.prevent="event => {handleAnnotationClick(event, annotation, index)}")
.row.no-wrap
.date {{formatSelectorForList(annotation)}}
markdown-display.content(:content="annotation.body.value")
template(v-else)
strong Loading annotations
......@@ -85,7 +84,6 @@ export default {
inputIndex: 0,
newAnnotationText: '',
staging: process.env.IS_STAGING,
displayType: 'tabs', // TODO: this is fake. should be set in CellEditor => cell['displayType']
activeTabIdx: 0
}
},
......
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