Commit ef057d81 authored by dindigala's avatar dindigala
Browse files

refactor: list highlight options

parent 7ea7317e
Pipeline #207514 passed with stages
in 2 minutes and 50 seconds
......@@ -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.configuredAnnotations.length;
const active = this.configuredAnnotations.filter((annotation) => annotation.status === true).length;
const num = this.currentAnnotations.length;
const active = this.currentAnnotations.filter((annotation) => annotation.status === true).length;
if (num === active) {
this.selectedAll = false;
......
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