Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
emo
TIDO
Commits
ef057d81
Commit
ef057d81
authored
Jun 28, 2021
by
dindigala
Browse files
refactor: list highlight options
parent
7ea7317e
Pipeline
#207514
passed with stages
in 2 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/annotations/annotations.vue
View file @
ef057d81
...
...
@@ -159,10 +159,6 @@ export default {
},
mounted
()
{
this
.
$root
.
$on
(
'
update-annotations
'
,
(
content
)
=>
{
// reset selected
this
.
selectedAll
=
undefined
;
this
.
selectedNone
=
undefined
;
const
parser
=
new
DOMParser
();
const
doc
=
parser
.
parseFromString
(
content
,
'
text/html
'
);
...
...
@@ -285,8 +281,8 @@ export default {
},
statusCheck
()
{
const
num
=
this
.
c
onfigured
Annotations
.
length
;
const
active
=
this
.
c
onfigured
Annotations
.
filter
((
annotation
)
=>
annotation
.
status
===
true
).
length
;
const
num
=
this
.
c
urrent
Annotations
.
length
;
const
active
=
this
.
c
urrent
Annotations
.
filter
((
annotation
)
=>
annotation
.
status
===
true
).
length
;
if
(
num
===
active
)
{
this
.
selectedAll
=
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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