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
6eb8b29d
Commit
6eb8b29d
authored
Apr 15, 2019
by
Andrej Ocenas
Committed by
Torkel Ödegaard
Apr 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chore: Add more explicit typing (#16594)
parent
83e8dede
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
public/app/features/datasources/utils/passwordHandlers.test.ts
+1
-1
public/app/features/datasources/utils/passwordHandlers.ts
+8
-2
No files found.
public/app/features/datasources/utils/passwordHandlers.test.ts
View file @
6eb8b29d
...
...
@@ -2,7 +2,7 @@ import { createResetHandler, PasswordFieldEnum, Ctrl } from './passwordHandlers'
describe
(
'createResetHandler'
,
()
=>
{
Object
.
keys
(
PasswordFieldEnum
).
forEach
(
fieldKey
=>
{
const
field
=
PasswordFieldEnum
[
fieldKe
y
];
const
field
:
any
=
PasswordFieldEnum
[
fieldKey
as
an
y
];
it
(
`should reset existing
${
field
}
field`
,
()
=>
{
const
event
:
any
=
{
...
...
public/app/features/datasources/utils/passwordHandlers.ts
View file @
6eb8b29d
...
...
@@ -15,8 +15,14 @@ export enum PasswordFieldEnum {
*/
export
type
Ctrl
=
{
current
:
{
secureJsonFields
:
{};
secureJsonData
?:
{};
secureJsonFields
:
{
[
key
:
string
]:
boolean
;
};
secureJsonData
?:
{
[
key
:
string
]:
string
;
};
password
?:
string
;
basicAuthPassword
?:
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