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
0b6434d0
Unverified
Commit
0b6434d0
authored
Dec 02, 2020
by
Ryan McKinley
Committed by
GitHub
Dec 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Overrides: show category on the overrides (#29556)
parent
22ec38b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
public/app/features/dashboard/components/PanelEditor/DynamicConfigValueEditor.tsx
+1
-1
public/app/features/dashboard/components/PanelEditor/OverrideEditor.tsx
+5
-1
No files found.
public/app/features/dashboard/components/PanelEditor/DynamicConfigValueEditor.tsx
View file @
0b6434d0
...
...
@@ -33,7 +33,7 @@ export const DynamicConfigValueEditor: React.FC<DynamicConfigValueEditorProps> =
// eslint-disable-next-line react/display-name
const
renderLabel
=
(
includeDescription
=
true
,
includeCounter
=
false
)
=>
(
isExpanded
=
false
)
=>
(
<
HorizontalGroup
justify=
"space-between"
>
<
Label
description=
{
includeDescription
?
item
.
description
:
undefined
}
>
<
Label
category=
{
item
.
category
?.
splice
(
1
)
}
description=
{
includeDescription
?
item
.
description
:
undefined
}
>
{
item
.
name
}
{
!
isExpanded
&&
includeCounter
&&
item
.
getItemsCount
&&
<
Counter
value=
{
item
.
getItemsCount
(
property
.
value
)
}
/>
}
</
Label
>
...
...
public/app/features/dashboard/components/PanelEditor/OverrideEditor.tsx
View file @
0b6434d0
...
...
@@ -98,8 +98,12 @@ export const OverrideEditor: React.FC<OverrideEditorProps> = ({
);
let
configPropertiesOptions
=
registry
.
list
().
map
(
item
=>
{
let
label
=
item
.
name
;
if
(
item
.
category
&&
item
.
category
.
length
>
1
)
{
label
=
[...
item
.
category
!
.
slice
(
1
),
item
.
name
].
join
(
' > '
);
}
return
{
label
:
item
.
name
,
label
,
value
:
item
.
id
,
description
:
item
.
description
,
};
...
...
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