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

This commit is contained in:
Ryan McKinley
2022-05-25 18:33:48 +02:00
committed by GitHub
parent 307c207a24
commit 2fa91b75e0
@@ -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;