Skip to content

Commit

Permalink
SAVE instead of ADD in user edit box
Browse files Browse the repository at this point in the history
  • Loading branch information
pswid committed Jan 23, 2023
1 parent 4bbf096 commit 5d0f6b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions interface/src/framework/security/UserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Schema, { ValidateFieldsError } from 'async-validator';

import CancelIcon from '@mui/icons-material/Cancel';
import PersonAddIcon from '@mui/icons-material/PersonAdd';
import SaveIcon from '@mui/icons-material/Save';

import { Button, Checkbox, Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material';

Expand Down Expand Up @@ -88,13 +89,13 @@ const UserForm: FC<UserFormProps> = ({ creating, validator, user, setUser, onDon
{LL.CANCEL()}
</Button>
<Button
startIcon={<PersonAddIcon />}
startIcon={creating ? <PersonAddIcon /> : <SaveIcon />}
variant="outlined"
onClick={validateAndDone}
color="primary"
autoFocus
>
{LL.ADD(0)}
{creating ? LL.ADD(0) : LL.SAVE()}
</Button>
</DialogActions>
</>
Expand Down

0 comments on commit 5d0f6b6

Please sign in to comment.