Commit bb3341cb authored by dindigala's avatar dindigala
Browse files

fix: remove marks in text panel if annotations panel is not visible

parent 5028bffe
Pipeline #207516 passed with stages
in 2 minutes and 49 seconds
...@@ -152,6 +152,21 @@ export default { ...@@ -152,6 +152,21 @@ export default {
} }
}, 500); }, 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: { methods: {
highlightActiveTabContent(contentTypes) { highlightActiveTabContent(contentTypes) {
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
--> -->
<script id="tido-config" type="application/json"> <script id="tido-config" type="application/json">
{ {
"entrypoint": "", "entrypoint": "https://ahikar-dev.sub.uni-goettingen.de/api/textapi/ahikar/arabic-karshuni/collection.json",
"annotations": { "annotations": {
"show": true, "show": true,
"types": [ "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