Commit 4fdb6000 authored by dindigala's avatar dindigala
Browse files

Merge branch 'issue/#296-text-panel-highlight' into 'develop'

fix/#296: Remove marks in text panel if annotations panel is not visible

See merge request !195
parents 4edf4b8b bb3341cb
Pipeline #213768 failed with stages
in 3 minutes and 25 seconds
......@@ -157,6 +157,21 @@ export default {
}
}, 500);
});
this.$root.$on('panels-position', (newPanels) => {
const annotationPanelHidden = newPanels.find((x) => x.panel_label === 'Annotations' && !x.show);
this.currentAnnotations.forEach((annotation) => {
const id = this.stripAnnotationId(annotation.target.id);
const textElement = document.getElementById(id);
if (annotationPanelHidden) {
textElement.classList.remove('annotation');
} else {
textElement.classList.add('annotation');
textElement.classList.add('annotation-disabled');
}
});
});
},
methods: {
activeTab(key, types) {
......
......@@ -31,7 +31,7 @@
-->
<script id="tido-config" type="application/json">
{
"entrypoint": "",
"entrypoint": "https://ahikar-dev.sub.uni-goettingen.de/api/textapi/ahikar/arabic-karshuni/collection.json",
"annotations": {
"show": true,
"types": [
......
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