Commit 0955fbd9 authored by Anton's avatar Anton

Set default link target in post-annotator and search results

parent dbbfae32
......@@ -8,7 +8,7 @@
q-btn(@click="search", color="primary") Search
.row.q-mt-md(v-for="result in results")
.col-md-6
markdown-display.markdown-display(:content="result.body.value")
markdown-display.markdown-display(:content="result.body.value", :options="mdOptions")
small {{ getVideo(result).metadata.title }}
.col-md-6
p {{ formatDate(result.target.selector.value) }}
......@@ -25,7 +25,10 @@
query: undefined,
map: undefined,
videos: [],
results: []
results: [],
mdOptions: {
target: '_blank'
}
}
},
async mounted () {
......
......@@ -79,7 +79,8 @@
q-item-tile.q-caption.q-my-xs
span {{ annotation.author.name }}
q-item-tile
markdown-display.markdown-display.q-mt-sm(v-if="!isEditingAnnotations || editAnnotationIndex !== i", :content="annotation.body.value")
markdown-display.markdown-display.q-mt-sm(v-if="!isEditingAnnotations || editAnnotationIndex !== i",
:content="annotation.body.value", :options="mdOptions")
q-input.q-mt-sm.q-mb-sm(v-if="annotation.body.type === 'TextualBody' && editAnnotationIndex === i", color="white",
type="textarea", v-model="annotation.body.value", dark)
......@@ -130,7 +131,10 @@
video: undefined,
editAnnotationIndex: undefined,
editAnnotationBuffer: undefined,
hashTimeout: undefined
hashTimeout: undefined,
mdOptions: {
target: '_blank'
}
}
},
computed: {
......
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