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
65370c54
Unverified
Commit
65370c54
authored
Mar 10, 2020
by
Shavonn Brown
Committed by
GitHub
Mar 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
on update for checkbox and switch (#22656)
* on update for checkbox and switch * use ? instead
parent
7598d3fb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
packages/grafana-data/src/utils/datasource.ts
+8
-0
No files found.
packages/grafana-data/src/utils/datasource.ts
View file @
65370c54
...
@@ -27,6 +27,14 @@ export const onUpdateDatasourceJsonDataOptionSelect = <J, S, K extends keyof J>(
...
@@ -27,6 +27,14 @@ export const onUpdateDatasourceJsonDataOptionSelect = <J, S, K extends keyof J>(
updateDatasourcePluginJsonDataOption
(
props
,
key
,
selected
.
value
);
updateDatasourcePluginJsonDataOption
(
props
,
key
,
selected
.
value
);
};
};
export
const
onUpdateDatasourceJsonDataOptionChecked
=
<
J
,
S
,
K
extends
keyof
J
>
(
props
:
DataSourcePluginOptionsEditorProps
<
J
,
S
>
,
key
:
K
,
val
:
boolean
)
=>
(
event
?:
React
.
SyntheticEvent
<
HTMLInputElement
>
)
=>
{
updateDatasourcePluginJsonDataOption
(
props
,
key
,
val
);
};
export
const
onUpdateDatasourceSecureJsonDataOptionSelect
=
<
J
,
S
extends
{}
=
KeyValue
>
(
export
const
onUpdateDatasourceSecureJsonDataOptionSelect
=
<
J
,
S
extends
{}
=
KeyValue
>
(
props
:
DataSourcePluginOptionsEditorProps
<
J
,
S
>
,
props
:
DataSourcePluginOptionsEditorProps
<
J
,
S
>
,
key
:
string
key
:
string
...
...
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