mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
AddPermission: Prevent page reload (#81324)
This commit is contained in:
parent
0f3606f3f5
commit
a10c577f52
@ -71,7 +71,13 @@ export const AddPermission = ({
|
||||
<CloseButton onClick={onCancel} />
|
||||
<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">
|
||||
<Select
|
||||
aria-label="Role to add new permission to"
|
||||
|
Loading…
Reference in New Issue
Block a user