From 0f4af4604eae0200a377ef7967ab3e40d322aa47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Barto=C5=A1?= <bartos@cesnet.cz> Date: Wed, 10 Feb 2021 22:29:42 +0100 Subject: [PATCH] fixed URL to the new case + some other minor improvements --- thehive_button/public/options_editor.js | 2 +- thehive_button/public/request_handler.js | 3 --- thehive_button/public/vis_controller.js | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/thehive_button/public/options_editor.js b/thehive_button/public/options_editor.js index 8985884..cd18987 100644 --- a/thehive_button/public/options_editor.js +++ b/thehive_button/public/options_editor.js @@ -106,7 +106,7 @@ export function optionsEditor(props) { </EuiFormRow> <EuiFlexGroup> <EuiFlexItem grow={1}> - <EuiFormRow label="API key to access The Hive" helpText="API key of a user with write permission."> + <EuiFormRow label="API key to access The Hive" helpText="API key of a user with permission to create cases (not admin)."> <EuiFieldText fullWidth={true} value={stateParams.apikey} diff --git a/thehive_button/public/request_handler.js b/thehive_button/public/request_handler.js index bdbb0f4..c373052 100644 --- a/thehive_button/public/request_handler.js +++ b/thehive_button/public/request_handler.js @@ -11,9 +11,6 @@ import { calculateObjectHash } from 'ui/vis/lib/calculate_object_hash'; import { getRequestInspectorStats, getResponseInspectorStats } from 'ui/courier/utils/courier_inspector_utils'; import chrome from 'ui/chrome'; -// Maximum number of unique values of each field (observables) to fetch -const MAX_NUMBER_OF_TERMS = 5; - const handleCourierRequest = courierRequestHandlerProvider().handler; // Register new RaquestHandlerProvider diff --git a/thehive_button/public/vis_controller.js b/thehive_button/public/vis_controller.js index 8b23222..45794ef 100644 --- a/thehive_button/public/vis_controller.js +++ b/thehive_button/public/vis_controller.js @@ -283,7 +283,7 @@ class NewCaseButton extends Component { console.log("TheHiveButton: Case created:", resp); const case_id = resp.id; - const case_url = base_url + "index.html#/case/" + case_id + "/details"; + const case_url = base_url + "index.html#/case!/" + case_id + "/details"; // Show notification let obs_text; -- GitLab