Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
6fabfee0
Unverified
Commit
6fabfee0
authored
Sep 08, 2020
by
Alex Khomenko
Committed by
GitHub
Sep 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Search: replace cog icon (#27440)
parent
09c95714
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
packages/grafana-ui/src/types/icon.ts
+3
-1
public/app/features/search/components/SectionHeader.tsx
+12
-6
No files found.
packages/grafana-ui/src/types/icon.ts
View file @
6fabfee0
...
@@ -115,7 +115,8 @@ export type IconName =
...
@@ -115,7 +115,8 @@ export type IconName =
|
'line-alt'
|
'line-alt'
|
'sort-amount-down'
|
'sort-amount-down'
|
'cloud'
|
'cloud'
|
'draggabledots'
;
|
'draggabledots'
|
'folder-upload'
;
export
const
getAvailableIcons
=
():
IconName
[]
=>
[
export
const
getAvailableIcons
=
():
IconName
[]
=>
[
'fa fa-spinner'
,
'fa fa-spinner'
,
...
@@ -230,4 +231,5 @@ export const getAvailableIcons = (): IconName[] => [
...
@@ -230,4 +231,5 @@ export const getAvailableIcons = (): IconName[] => [
'sort-amount-down'
,
'sort-amount-down'
,
'cloud'
,
'cloud'
,
'draggabledots'
,
'draggabledots'
,
'folder-upload'
,
];
];
public/app/features/search/components/SectionHeader.tsx
View file @
6fabfee0
...
@@ -48,12 +48,15 @@ export const SectionHeader: FC<SectionHeaderProps> = ({
...
@@ -48,12 +48,15 @@ export const SectionHeader: FC<SectionHeaderProps> = ({
<
Icon
name=
{
getSectionIcon
(
section
)
}
/>
<
Icon
name=
{
getSectionIcon
(
section
)
}
/>
</
div
>
</
div
>
<
span
className=
{
styles
.
text
}
>
{
section
.
title
}
</
span
>
<
div
className=
{
styles
.
text
}
>
{
section
.
url
&&
(
{
section
.
title
}
<
a
href=
{
section
.
url
}
className=
{
styles
.
link
}
>
{
section
.
url
&&
(
<
Icon
name=
"cog"
/>
<
a
href=
{
section
.
url
}
className=
{
styles
.
link
}
>
</
a
>
<
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'
}
/>
}
{
section
.
itemsFetching
?
<
Spinner
/>
:
<
Icon
name=
{
section
.
expanded
?
'angle-down'
:
'angle-right'
}
/>
}
</
div
>
</
div
>
);
);
...
@@ -97,5 +100,8 @@ const getSectionHeaderStyles = stylesFactory((theme: GrafanaTheme, selected = fa
...
@@ -97,5 +100,8 @@ const getSectionHeaderStyles = stylesFactory((theme: GrafanaTheme, selected = fa
opacity: 0;
opacity: 0;
transition: opacity 150ms ease-in-out;
transition: opacity 150ms ease-in-out;
`
,
`
,
separator
:
css
`
margin-right: 6px;
`
,
};
};
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment