Search: add icon for row and singlestat panels (#49620) (#49634)

(cherry picked from commit 2fa91b75e0)

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-05-26 18:50:09 +02:00
committed by GitHub
co-authored by Ryan McKinley
parent c3cc01912b
commit 5fd9fee933
@@ -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;