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
e38fc693
Unverified
Commit
e38fc693
authored
Feb 11, 2021
by
Torkel Ödegaard
Committed by
GitHub
Feb 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DataSourceSettings: Fixes add header button, it should not trigger a save & test action (#31135)
parent
e21f6a29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
packages/grafana-ui/src/components/DataSourceSettings/CustomHeadersSettings.tsx
+2
-1
No files found.
packages/grafana-ui/src/components/DataSourceSettings/CustomHeadersSettings.tsx
View file @
e38fc693
...
@@ -52,6 +52,7 @@ const getCustomHeaderRowStyles = stylesFactory(() => {
...
@@ -52,6 +52,7 @@ const getCustomHeaderRowStyles = stylesFactory(() => {
`
,
`
,
};
};
});
});
const
CustomHeaderRow
:
React
.
FC
<
CustomHeaderRowProps
>
=
({
header
,
onBlur
,
onChange
,
onRemove
,
onReset
})
=>
{
const
CustomHeaderRow
:
React
.
FC
<
CustomHeaderRowProps
>
=
({
header
,
onBlur
,
onChange
,
onRemove
,
onReset
})
=>
{
const
styles
=
getCustomHeaderRowStyles
();
const
styles
=
getCustomHeaderRowStyles
();
return
(
return
(
...
@@ -138,7 +139,7 @@ export class CustomHeadersSettings extends PureComponent<Props, State> {
...
@@ -138,7 +139,7 @@ export class CustomHeadersSettings extends PureComponent<Props, State> {
onHeaderAdd
=
()
=>
{
onHeaderAdd
=
()
=>
{
this
.
setState
((
prevState
)
=>
{
this
.
setState
((
prevState
)
=>
{
return
{
headers
:
[...
prevState
.
headers
,
{
id
:
uniqueId
(),
name
:
''
,
value
:
''
,
configured
:
false
}]
};
return
{
headers
:
[...
prevState
.
headers
,
{
id
:
uniqueId
(),
name
:
''
,
value
:
''
,
configured
:
false
}]
};
}
,
this
.
updateSettings
);
});
};
};
onHeaderChange
=
(
headerIndex
:
number
,
value
:
CustomHeader
)
=>
{
onHeaderChange
=
(
headerIndex
:
number
,
value
:
CustomHeader
)
=>
{
...
...
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