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
71df1573
Unverified
Commit
71df1573
authored
Nov 13, 2020
by
Ivana Huckova
Committed by
GitHub
Nov 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sort alphabetically unique labels, labels and parsed fields (#29030)
parent
e503188b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
packages/grafana-ui/src/components/Logs/LogDetails.tsx
+4
-2
packages/grafana-ui/src/components/Logs/LogLabels.tsx
+1
-1
No files found.
packages/grafana-ui/src/components/Logs/LogDetails.tsx
View file @
71df1573
...
@@ -112,7 +112,9 @@ class UnThemedLogDetails extends PureComponent<Props> {
...
@@ -112,7 +112,9 @@ class UnThemedLogDetails extends PureComponent<Props> {
</
td
>
</
td
>
</
tr
>
</
tr
>
)
}
)
}
{
Object
.
keys
(
labels
).
map
(
key
=>
{
{
Object
.
keys
(
labels
)
.
sort
()
.
map
(
key
=>
{
const
value
=
labels
[
key
];
const
value
=
labels
[
key
];
return
(
return
(
<
LogDetailsRow
<
LogDetailsRow
...
@@ -134,7 +136,7 @@ class UnThemedLogDetails extends PureComponent<Props> {
...
@@ -134,7 +136,7 @@ class UnThemedLogDetails extends PureComponent<Props> {
</
td
>
</
td
>
</
tr
>
</
tr
>
)
}
)
}
{
fields
.
map
(
field
=>
{
{
fields
.
sort
().
map
(
field
=>
{
const
{
key
,
value
,
links
,
fieldIndex
}
=
field
;
const
{
key
,
value
,
links
,
fieldIndex
}
=
field
;
return
(
return
(
<
LogDetailsRow
<
LogDetailsRow
...
...
packages/grafana-ui/src/components/Logs/LogLabels.tsx
View file @
71df1573
...
@@ -57,7 +57,7 @@ export const UnThemedLogLabels: FunctionComponent<Props> = ({ labels, theme }) =
...
@@ -57,7 +57,7 @@ export const UnThemedLogLabels: FunctionComponent<Props> = ({ labels, theme }) =
return
(
return
(
<
span
className=
{
cx
([
styles
.
logsLabels
])
}
>
<
span
className=
{
cx
([
styles
.
logsLabels
])
}
>
{
displayLabels
.
map
(
label
=>
{
{
displayLabels
.
sort
().
map
(
label
=>
{
const
value
=
labels
[
label
];
const
value
=
labels
[
label
];
const
tooltip
=
`${label}: ${value}`
;
const
tooltip
=
`${label}: ${value}`
;
return
(
return
(
...
...
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