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
4f3d9953
Unverified
Commit
4f3d9953
authored
Mar 31, 2020
by
Shavonn Brown
Committed by
GitHub
Mar 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tooltip prop and fix folder name (#22901)
* add tooltip prop and fix folder name * fix folder name refs
parent
ec743cf9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
3 deletions
+6
-3
packages/grafana-ui/src/components/DataSourceSettings/BasicAuthSettings.tsx
+1
-1
packages/grafana-ui/src/components/DataSourceSettings/CustomHeadersSettings.tsx
+1
-1
packages/grafana-ui/src/components/SecretFormField/SecretFormField.story.tsx
+0
-0
packages/grafana-ui/src/components/SecretFormField/SecretFormField.tsx
+3
-0
packages/grafana-ui/src/components/index.ts
+1
-1
No files found.
packages/grafana-ui/src/components/DataSourceSettings/BasicAuthSettings.tsx
View file @
4f3d9953
import
React
from
'react'
;
import
{
HttpSettingsProps
}
from
'./types'
;
import
{
FormField
}
from
'../FormField/FormField'
;
import
{
SecretFormField
}
from
'../SecretFormFied/SecretFormField'
;
import
{
SecretFormField
}
from
'../SecretFormFie
l
d/SecretFormField'
;
export
const
BasicAuthSettings
:
React
.
FC
<
HttpSettingsProps
>
=
({
dataSourceConfig
,
onChange
})
=>
{
const
password
=
dataSourceConfig
.
secureJsonData
?
dataSourceConfig
.
secureJsonData
.
basicAuthPassword
:
''
;
...
...
packages/grafana-ui/src/components/DataSourceSettings/CustomHeadersSettings.tsx
View file @
4f3d9953
...
...
@@ -4,7 +4,7 @@ import uniqueId from 'lodash/uniqueId';
import
{
DataSourceSettings
}
from
'@grafana/data'
;
import
{
Button
}
from
'../Button'
;
import
{
FormField
}
from
'../FormField/FormField'
;
import
{
SecretFormField
}
from
'../SecretFormFied/SecretFormField'
;
import
{
SecretFormField
}
from
'../SecretFormFie
l
d/SecretFormField'
;
import
{
stylesFactory
}
from
'../../themes'
;
export
interface
CustomHeader
{
...
...
packages/grafana-ui/src/components/SecretFormFied/SecretFormField.story.tsx
→
packages/grafana-ui/src/components/SecretFormFie
l
d/SecretFormField.story.tsx
View file @
4f3d9953
File moved
packages/grafana-ui/src/components/SecretFormFied/SecretFormField.tsx
→
packages/grafana-ui/src/components/SecretFormFie
l
d/SecretFormField.tsx
View file @
4f3d9953
...
...
@@ -10,6 +10,7 @@ interface Props extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onReset'> {
isConfigured
:
boolean
;
label
?:
string
;
tooltip
?:
string
;
labelWidth
?:
number
;
inputWidth
?:
number
;
// Placeholder of the input field when in non configured state.
...
...
@@ -40,6 +41,7 @@ export const SecretFormField: FunctionComponent<Props> = ({
inputWidth
=
12
,
onReset
,
isConfigured
,
tooltip
,
placeholder
=
'Password'
,
...
inputProps
}:
Props
)
=>
{
...
...
@@ -47,6 +49,7 @@ export const SecretFormField: FunctionComponent<Props> = ({
return
(
<
FormField
label=
{
label
!
}
tooltip=
{
tooltip
!
}
labelWidth=
{
labelWidth
}
inputEl=
{
isConfigured
?
(
...
...
packages/grafana-ui/src/components/index.ts
View file @
4f3d9953
...
...
@@ -20,7 +20,7 @@ export { Cascader, CascaderOption } from './Cascader/Cascader';
// Forms
export
{
FormLabel
}
from
'./FormLabel/FormLabel'
;
export
{
FormField
}
from
'./FormField/FormField'
;
export
{
SecretFormField
}
from
'./SecretFormFied/SecretFormField'
;
export
{
SecretFormField
}
from
'./SecretFormFie
l
d/SecretFormField'
;
export
{
LoadingPlaceholder
}
from
'./LoadingPlaceholder/LoadingPlaceholder'
;
export
{
ColorPicker
,
SeriesColorPicker
}
from
'./ColorPicker/ColorPicker'
;
...
...
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