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
09bcdc10
Commit
09bcdc10
authored
Apr 05, 2020
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NewPanelEdit: Fixed missing react keys in list error
parent
3ec88a01
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
10 deletions
+13
-10
public/app/features/dashboard/components/PanelEditor/OptionsPaneContent.tsx
+9
-6
public/app/features/dashboard/components/PanelEditor/PanelOptionsTab.tsx
+3
-2
public/app/plugins/panel/table2/TablePanel.tsx
+1
-1
public/app/plugins/panel/table2/module.tsx
+0
-1
No files found.
public/app/features/dashboard/components/PanelEditor/OptionsPaneContent.tsx
View file @
09bcdc10
...
...
@@ -184,11 +184,14 @@ export const TabsBarContent: React.FC<{
</
div
>
)
:
(
<>
{
tabSelections
.
map
(
item
=>
{
return
(
<
Tab
label=
{
item
.
label
}
active=
{
activeTab
===
item
.
value
}
onChangeTab=
{
()
=>
setActiveTab
(
item
.
value
)
}
/>
);
})
}
{
tabSelections
.
map
(
item
=>
(
<
Tab
key=
{
item
.
value
}
label=
{
item
.
label
}
active=
{
activeTab
===
item
.
value
}
onChangeTab=
{
()
=>
setActiveTab
(
item
.
value
)
}
/>
))
}
<
div
className=
"flex-grow-1"
/>
</>
)
}
...
...
@@ -219,7 +222,7 @@ const tabSelections: Array<SelectableValue<string>> = [
value
:
'options'
,
},
{
label
:
'
Data
'
,
label
:
'
Fields
'
,
value
:
'defaults'
,
},
{
...
...
public/app/features/dashboard/components/PanelEditor/PanelOptionsTab.tsx
View file @
09bcdc10
...
...
@@ -96,7 +96,6 @@ export const PanelOptionsTab: FC<Props> = ({
}
elements
.
push
(
<>
<
OptionsGroup
title=
"Panel links"
key=
"panel links"
defaultToClosed=
{
true
}
>
<
DataLinksInlineEditor
links=
{
panel
.
links
}
...
...
@@ -105,6 +104,9 @@ export const PanelOptionsTab: FC<Props> = ({
data=
{
[]
}
/>
</
OptionsGroup
>
);
elements
.
push
(
<
OptionsGroup
title=
"Panel repeats"
key=
"panel repeats"
defaultToClosed=
{
true
}
>
<
Forms
.
Field
label=
"Repeat by variable"
...
...
@@ -138,7 +140,6 @@ export const PanelOptionsTab: FC<Props> = ({
</
Forms
.
Field
>
)
}
</
OptionsGroup
>
</>
);
return
<>
{
elements
}
</>;
...
...
public/app/plugins/panel/table2/TablePanel.tsx
View file @
09bcdc10
...
...
@@ -20,6 +20,6 @@ export class TablePanel extends Component<Props> {
return
<
div
>
No Table Data...
</
div
>;
}
return
<
Table
height=
{
height
}
width=
{
width
}
data=
{
data
.
series
[
0
]
}
noHeader=
{
!
options
.
showHeader
}
/>;
return
<
Table
height=
{
height
-
16
}
width=
{
width
}
data=
{
data
.
series
[
0
]
}
noHeader=
{
!
options
.
showHeader
}
/>;
}
}
public/app/plugins/panel/table2/module.tsx
View file @
09bcdc10
...
...
@@ -15,7 +15,6 @@ export const plugin = new PanelPlugin<Options, CustomFieldConfig>(TablePanel)
min
:
20
,
max
:
300
,
},
defaultValue
:
1
,
})
.
addSelect
({
id
:
'displayMode'
,
...
...
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