From fbfd1c24e459d717130f7ad4ac56fbc04388ed9e Mon Sep 17 00:00:00 2001 From: Alexa V <239999+axelavargas@users.noreply.github.com> Date: Fri, 23 Jun 2023 10:15:27 +0200 Subject: [PATCH] Dashboard: Fix issue where a panel with a description and a cached response displays 2 info icons (#70513) --- packages/grafana-data/src/types/icon.ts | 1 + .../dashboard/dashgrid/PanelHeader/PanelHeaderNotice.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/grafana-data/src/types/icon.ts b/packages/grafana-data/src/types/icon.ts index fa51db78428..3c06ca2f3fe 100644 --- a/packages/grafana-data/src/types/icon.ts +++ b/packages/grafana-data/src/types/icon.ts @@ -97,6 +97,7 @@ export const availableIconsIndex = { 'file-blank': true, 'file-copy-alt': true, 'file-download': true, + 'file-landscape-alt': true, filter: true, flip: true, folder: true, diff --git a/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderNotice.tsx b/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderNotice.tsx index 9c394f0ee37..e4575e0b075 100644 --- a/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderNotice.tsx +++ b/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderNotice.tsx @@ -14,7 +14,7 @@ export const PanelHeaderNotice = ({ notice, onClick }: Props) => { const styles = useStyles2(getStyles); const iconName = - notice.severity === 'error' || notice.severity === 'warning' ? 'exclamation-triangle' : 'info-circle'; + notice.severity === 'error' || notice.severity === 'warning' ? 'exclamation-triangle' : 'file-landscape-alt'; if (notice.inspect && onClick) { return (