[v10.0.x] Dashboard: Fix issue where a panel with a description and a cached response displays 2 info icons (#70566)
Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com> Fix issue where a panel with a description and a cached response displays 2 info icons (#70513)
This commit is contained in:
@@ -95,6 +95,7 @@ export const availableIconsIndex = {
|
|||||||
'file-blank': true,
|
'file-blank': true,
|
||||||
'file-copy-alt': true,
|
'file-copy-alt': true,
|
||||||
'file-download': true,
|
'file-download': true,
|
||||||
|
'file-landscape-alt': true,
|
||||||
filter: true,
|
filter: true,
|
||||||
flip: true,
|
flip: true,
|
||||||
folder: true,
|
folder: true,
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export const PanelHeaderNotice = ({ notice, onClick }: Props) => {
|
|||||||
const styles = useStyles2(getStyles);
|
const styles = useStyles2(getStyles);
|
||||||
|
|
||||||
const iconName =
|
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) {
|
if (notice.inspect && onClick) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user