From 5fd9fee9332d69e483438836b00a353d8ddd0f80 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 26 May 2022 12:50:09 -0400 Subject: [PATCH] Search: add icon for row and singlestat panels (#49620) (#49634) (cherry picked from commit 2fa91b75e0f185f547222125fb8235550498880a) Co-authored-by: Ryan McKinley --- .../app/features/search/page/components/columns.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/public/app/features/search/page/components/columns.tsx b/public/app/features/search/page/components/columns.tsx index c38a472a704..2fd1c2860e9 100644 --- a/public/app/features/search/page/components/columns.tsx +++ b/public/app/features/search/page/components/columns.tsx @@ -296,7 +296,18 @@ function makeTypeColumn( } txt = info.name; } else { - icon = `public/img/icons/unicons/question.svg`; // plugin not found + switch (type) { + case 'row': + txt = 'Row'; + icon = `public/img/icons/unicons/bars.svg`; + break; + case 'singlestat': // auto-migration + txt = 'Singlestat'; + icon = `public/app/plugins/panel/stat/img/icn-singlestat-panel.svg`; + break; + default: + icon = `public/img/icons/unicons/question.svg`; // plugin not found + } } } break;