Commit 5f9e3d8a authored by dindigala's avatar dindigala
Browse files

refactor: logic to add text class names

parent 86ad976c
Pipeline #203903 passed with stages
in 4 minutes and 21 seconds
......@@ -163,8 +163,7 @@ export default {
if (textElement !== null) {
if (contentTypes.includes(annotation.body['x-content-type'])) {
textElement.classList.add('annotation');
textElement.classList.add('annotation-disabled');
textElement.classList.add('annotation', 'annotation-disabled');
} else {
textElement.classList.remove('annotation');
textElement.classList.add('annotation-disabled');
......
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