Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
emo
TIDO
Commits
bb3341cb
Commit
bb3341cb
authored
Jun 28, 2021
by
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
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/components/annotations/annotations.vue
View file @
bb3341cb
...
...
@@ -152,6 +152,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
:
{
highlightActiveTabContent
(
contentTypes
)
{
...
...
src/index.template.html
View file @
bb3341cb
...
...
@@ -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
"
:
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment