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
1d62df89
Commit
1d62df89
authored
Jun 16, 2021
by
dindigala
Browse files
refactor: wrap text elements to if condition
parent
289ad26a
Pipeline
#203899
passed with stages
in 5 minutes and 56 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/annotations/annotations.vue
View file @
1d62df89
...
...
@@ -161,12 +161,14 @@ export default {
const
id
=
this
.
stripAnnotationId
(
annotation
.
target
.
id
);
const
textElement
=
document
.
getElementById
(
id
);
if
(
textElement
!==
null
&&
contentTypes
.
includes
(
annotation
.
body
[
'
x-content-type
'
]))
{
textElement
.
classList
.
add
(
'
annotation
'
);
textElement
.
classList
.
add
(
'
annotation-disabled
'
);
}
else
if
(
!
contentTypes
.
includes
(
annotation
.
body
[
'
x-content-type
'
]))
{
textElement
.
classList
.
remove
(
'
annotation
'
);
textElement
.
classList
.
add
(
'
annotation-disabled
'
);
if
(
textElement
!==
null
)
{
if
(
contentTypes
.
includes
(
annotation
.
body
[
'
x-content-type
'
]))
{
textElement
.
classList
.
add
(
'
annotation
'
);
textElement
.
classList
.
add
(
'
annotation-disabled
'
);
}
else
{
textElement
.
classList
.
remove
(
'
annotation
'
);
textElement
.
classList
.
add
(
'
annotation-disabled
'
);
}
}
});
},
...
...
src/index.template.html
View file @
1d62df89
...
...
@@ -57,7 +57,7 @@
}
],
"
tabs
"
:{
"
Editorial
"
:
[
"
Person
"
,
"
Place
"
,
"
Editorial Comment
"
],
"
Editorial
"
:
[
"
Person
"
,
"
Place
"
,
"
Editorial Comment
"
],
"
Motif
"
:
[
"
Motif
"
]
}
},
...
...
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