From 5e7f946a586514ccf32c0924de5cef7ef8391074 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 13 Oct 2024 18:58:25 -0500 Subject: [PATCH] don't allow right click or show similar button if semantic search is disabled --- .../overlay/detail/SearchDetailDialog.tsx | 22 ++++++++++--------- web/src/views/search/SearchView.tsx | 6 ++++- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/web/src/components/overlay/detail/SearchDetailDialog.tsx b/web/src/components/overlay/detail/SearchDetailDialog.tsx index 94d28c7c8..1cee70aaa 100644 --- a/web/src/components/overlay/detail/SearchDetailDialog.tsx +++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx @@ -396,17 +396,19 @@ function ObjectDetailsTab({ draggable={false} src={`${apiHost}api/events/${search.id}/thumbnail.jpg`} /> - + )}