From 2fa91b75e0f185f547222125fb8235550498880a Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Wed, 25 May 2022 09:33:48 -0700 Subject: [PATCH] Search: add icon for row and singlestat panels (#49620) --- .../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;