Commit 74ab1d8a authored by pestov's avatar pestov
Browse files

refactor: check if annotation is active

parent d6c723df
Pipeline #235793 passed with stages
in 4 minutes and 9 seconds
......@@ -4,7 +4,7 @@
v-for="annotation in configuredAnnotations"
:id="'list' + annotation.strippedId"
:key="annotation.strippedId"
:class="$q.dark.isActive ? { 'bg-grey-9': !!activeAnnotation[annotation.targetId] } : { 'bg-grey-4': !!activeAnnotation[annotation.targetId] }"
:class="$q.dark.isActive ? { 'bg-grey-9': isActive(annotation) } : { 'bg-grey-4': isActive(annotation) }"
class="q-pa-sm q-pl-xs q-mb-xs"
clickable
padding="xs"
......@@ -54,6 +54,11 @@ export default {
default: () => null,
},
},
methods: {
isActive(annotation) {
return !!this.activeAnnotation[annotation.targetId];
},
},
};
</script>
......
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