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
7325b1a2
Commit
7325b1a2
authored
Apr 26, 2021
by
Mathias Goebel
🎠
Browse files
feat: remove getter for annotation body text
parent
8ba887d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/App.vue
View file @
7325b1a2
...
...
@@ -139,14 +139,12 @@ export default {
annotations
.
forEach
((
annotation
)
=>
{
const
id
=
this
.
getAnnotationId
(
annotation
);
const
text
=
this
.
getAnnotationText
(
id
);
identifiers
.
push
({
id
,
contenttype
:
annotation
.
body
[
'
x-content-type
'
],
description
:
annotation
.
body
.
value
,
selected
:
this
.
config
.
annotations
.
show
,
text
,
});
});
...
...
@@ -167,21 +165,6 @@ export default {
return
split
[
split
.
length
-
1
];
},
/**
* match annotation against it's text counterpart
* caller: *filterAnnotations()*
*
* @param string id
*
* @return string
*/
getAnnotationText
(
id
)
{
const
element
=
document
.
getElementById
(
id
);
return
element
!==
null
?
element
.
innerText
:
false
;
},
/**
* get annotations of the current item
* caller: *getItemData()*
...
...
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