Commit a1dc3a09 authored by christianrhansen's avatar christianrhansen

added query

parent 6f85e5bb
......@@ -3,9 +3,9 @@
back-button(slot="backButton")
| Annotations Table
.q-my-lg.bg-grey-8
data-table(v-if="annotations", :config="config")
data-table(v-if="annotations", :config="config", path="annotations", :query="queryNew")
br
.q-mt-md(v-for="annotation in annotations") {{ annotation }}
.q-mt-md.q-caption(v-for="(annotation, index) in annotations") {{ index + 1 }} --- {{ annotation }}
</template>
<script>
......@@ -18,6 +18,7 @@
data () {
const _this = this
return {
queryNew: undefined,
annotations: undefined,
video: undefined,
timeline: undefined,
......@@ -80,6 +81,14 @@
if (this.video) {
this.metadata = await this.$store.dispatch('metadata/get', this.video)
}
this.queryNew = {
'target.id': this.timeline.id,
'target.type': constants.MAP_TYPE_TIMELINE,
'target.selector.value': { $gte: this.video.target.selector.value },
'body.type': { $in: ['TextualBody', 'VocabularyEntry'] }
}
// let data = await this.$store.dispatch('annotations/find', this.query)
// console.log(data)
},
async getAnnotations () {
const
......
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