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

pull/49555/head
Ryan McKinley 3 years ago committed by GitHub
parent 307c207a24
commit 2fa91b75e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      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;

Loading…
Cancel
Save