mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Datasource: fix a bug where deleting data source will trigger save and test events (#21300)
This commit is contained in:
parent
630f75d3ef
commit
ee77e1a791
@ -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}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user