mirror of
https://github.com/grafana/grafana.git
synced 2025-09-19 22:52:51 +08:00
AddPermission: Prevent page reload (#81324)
This commit is contained in:
@ -71,7 +71,13 @@ export const AddPermission = ({
|
|||||||
<CloseButton onClick={onCancel} />
|
<CloseButton onClick={onCancel} />
|
||||||
<h5>{title}</h5>
|
<h5>{title}</h5>
|
||||||
|
|
||||||
<form name="addPermission" onSubmit={() => onAdd({ userId, teamId, builtInRole, permission, target })}>
|
<form
|
||||||
|
name="addPermission"
|
||||||
|
onSubmit={(event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
onAdd({ userId, teamId, builtInRole, permission, target });
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Stack gap={1} direction="row">
|
<Stack gap={1} direction="row">
|
||||||
<Select
|
<Select
|
||||||
aria-label="Role to add new permission to"
|
aria-label="Role to add new permission to"
|
||||||
|
Reference in New Issue
Block a user