Commit eab6a272 authored by anton's avatar anton

Show author in CellAnnotationList is now optional

parent 43aad633
Pipeline #79588 passed with stage
in 1 minute and 1 second
...@@ -356,6 +356,15 @@ ...@@ -356,6 +356,15 @@
error: false, error: false,
value: false, value: false,
path: 'editable' path: 'editable'
},
{
inputType: 'checkbox',
type: 'Annotation-List',
label: 'Show author names',
help: 'Show the names of the annotations\'s authors',
error: false,
value: false,
path: 'showAuthor'
} }
/* /*
{ {
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
:cell="cell", :cell="cell",
:locked="locked", :locked="locked",
:index="index", :index="index",
:show-author="showAuthor",
:currentIndex="currentIndex", :currentIndex="currentIndex",
:videoDate="getMediaDate()", :videoDate="getMediaDate()",
@onTimecode="clickAnnotation", @onTimecode="clickAnnotation",
...@@ -152,6 +153,9 @@ export default { ...@@ -152,6 +153,9 @@ export default {
baseMillis () { baseMillis () {
if (!this.video) return DateTime.local().toMillis() if (!this.video) return DateTime.local().toMillis()
return this.video.target.selector._valueMillis + this.playerTime * 1000 return this.video.target.selector._valueMillis + this.playerTime * 1000
},
showAuthor () {
return this.cell && this.cell.source._value && this.cell.source._value.showAuthor
} }
}, },
methods: { methods: {
......
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