From ab30b22a98266e231ba401aa702ef232fa69989c Mon Sep 17 00:00:00 2001 From: Richard Eckart de Castilho Date: Wed, 20 Sep 2023 22:05:01 +0200 Subject: [PATCH] #4198 - Show layer name instead of no-label - Use the layer name if available --- .../main/ts/src/apache-annotator/ApacheAnnotatorVisualizer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inception/inception-html-apache-annotator-editor/src/main/ts/src/apache-annotator/ApacheAnnotatorVisualizer.ts b/inception/inception-html-apache-annotator-editor/src/main/ts/src/apache-annotator/ApacheAnnotatorVisualizer.ts index 10511853a2f..2cacfc13beb 100644 --- a/inception/inception-html-apache-annotator-editor/src/main/ts/src/apache-annotator/ApacheAnnotatorVisualizer.ts +++ b/inception/inception-html-apache-annotator-editor/src/main/ts/src/apache-annotator/ApacheAnnotatorVisualizer.ts @@ -309,7 +309,7 @@ export class ApacheAnnotatorVisualizer { const attributes = { 'data-iaa-id': `${span.vid}`, - 'data-iaa-label': `${span.label || NO_LABEL}`, + 'data-iaa-label': `${span.label || `[${span.layer.name}]` || NO_LABEL}`, class: classList.join(' '), style: styleList.join('; ') }