Commit 6fabfee0 by Alex Khomenko Committed by GitHub

Search: replace cog icon (#27440)

parent 09c95714
......@@ -115,7 +115,8 @@ export type IconName =
| 'line-alt'
| 'sort-amount-down'
| 'cloud'
| 'draggabledots';
| 'draggabledots'
| 'folder-upload';
export const getAvailableIcons = (): IconName[] => [
'fa fa-spinner',
......@@ -230,4 +231,5 @@ export const getAvailableIcons = (): IconName[] => [
'sort-amount-down',
'cloud',
'draggabledots',
'folder-upload',
];
......@@ -48,12 +48,15 @@ export const SectionHeader: FC<SectionHeaderProps> = ({
<Icon name={getSectionIcon(section)} />
</div>
<span className={styles.text}>{section.title}</span>
<div className={styles.text}>
{section.title}
{section.url && (
<a href={section.url} className={styles.link}>
<Icon name="cog" />
<span className={styles.separator}>|</span> <Icon name="folder-upload" /> Go to folder
</a>
)}
</div>
{section.itemsFetching ? <Spinner /> : <Icon name={section.expanded ? 'angle-down' : 'angle-right'} />}
</div>
);
......@@ -97,5 +100,8 @@ const getSectionHeaderStyles = stylesFactory((theme: GrafanaTheme, selected = fa
opacity: 0;
transition: opacity 150ms ease-in-out;
`,
separator: css`
margin-right: 6px;
`,
};
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment