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
ee77e1a7
Commit
ee77e1a7
authored
Jan 07, 2020
by
lzd
Committed by
Torkel Ödegaard
Jan 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Datasource: fix a bug where deleting data source will trigger save and test events (#21300)
parent
630f75d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
public/app/features/datasources/settings/ButtonRow.tsx
+1
-1
public/app/features/datasources/settings/__snapshots__/ButtonRow.test.tsx.snap
+2
-2
No files found.
public/app/features/datasources/settings/ButtonRow.tsx
View file @
ee77e1a7
...
...
@@ -30,7 +30,7 @@ const ButtonRow: FC<Props> = ({ isReadOnly, onDelete, onSubmit, onTest }) => {
</
button
>
)
}
<
button
type=
"
submit
"
type=
"
button
"
className=
"btn btn-danger"
disabled=
{
isReadOnly
}
onClick=
{
onDelete
}
...
...
public/app/features/datasources/settings/__snapshots__/ButtonRow.test.tsx.snap
View file @
ee77e1a7
...
...
@@ -16,7 +16,7 @@ exports[`Render should render component 1`] = `
className="btn btn-danger"
disabled={true}
onClick={[MockFunction]}
type="
submit
"
type="
button
"
>
Delete
</button>
...
...
@@ -47,7 +47,7 @@ exports[`Render should render with buttons enabled 1`] = `
className="btn btn-danger"
disabled={false}
onClick={[MockFunction]}
type="
submit
"
type="
button
"
>
Delete
</button>
...
...
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