From d3c061e776dafb461b524128aa7f19e84c658338 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=A1clav=20Barto=C5=A1?= <bartos@cesnet.cz>
Date: Thu, 18 Mar 2021 17:12:29 +0100
Subject: [PATCH] TheHiveButton: better headers of observable tables

---
 thehive_button/public/vis_controller.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/thehive_button/public/vis_controller.js b/thehive_button/public/vis_controller.js
index 4bc512d..7b3ee14 100644
--- a/thehive_button/public/vis_controller.js
+++ b/thehive_button/public/vis_controller.js
@@ -511,7 +511,7 @@ class ObservablesTable extends Component {
       <>
         <EuiAccordion
           id="accordion-{this.props.fieldName}"
-          buttonContent={<EuiTitle size="xs"><h4>{this.props.fieldName} ({n_obs})</h4></EuiTitle>}
+          buttonContent={<EuiTitle size="xs"><h4>{this.props.fieldName.replace(/\.keyword$/, "")} ({this.props.obsSel.length}/{n_obs})</h4></EuiTitle>}
           initialIsOpen={n_obs <= 3}
         >
           <EuiBasicTable
-- 
GitLab