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>
|
||||||
)}
|
)}
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="button"
|
||||||
className="btn btn-danger"
|
className="btn btn-danger"
|
||||||
disabled={isReadOnly}
|
disabled={isReadOnly}
|
||||||
onClick={onDelete}
|
onClick={onDelete}
|
||||||
|
@ -16,7 +16,7 @@ exports[`Render should render component 1`] = `
|
|||||||
className="btn btn-danger"
|
className="btn btn-danger"
|
||||||
disabled={true}
|
disabled={true}
|
||||||
onClick={[MockFunction]}
|
onClick={[MockFunction]}
|
||||||
type="submit"
|
type="button"
|
||||||
>
|
>
|
||||||
Delete
|
Delete
|
||||||
</button>
|
</button>
|
||||||
@ -47,7 +47,7 @@ exports[`Render should render with buttons enabled 1`] = `
|
|||||||
className="btn btn-danger"
|
className="btn btn-danger"
|
||||||
disabled={false}
|
disabled={false}
|
||||||
onClick={[MockFunction]}
|
onClick={[MockFunction]}
|
||||||
type="submit"
|
type="button"
|
||||||
>
|
>
|
||||||
Delete
|
Delete
|
||||||
</button>
|
</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user