little tidyups

This commit is contained in:
Rick Watson 2019-05-25 18:01:50 +01:00
parent 4fdc3eee66
commit ab03ddaf4d
2 changed files with 3 additions and 4 deletions

View File

@ -15,7 +15,6 @@ import TableHead from '@material-ui/core/TableHead';
import TableRow from '@material-ui/core/TableRow';
import Box from '@material-ui/core/Box';
import EditIcon from '@material-ui/icons/Edit';
import DeleteIcon from '@material-ui/icons/Delete';
import CloseIcon from '@material-ui/icons/Close';
@ -157,7 +156,7 @@ class ManageUsersForm extends React.Component {
<TableRow>
<TableCell>Username</TableCell>
<TableCell align="center">Admin?</TableCell>
<TableCell align="center">Action</TableCell>
<TableCell />
</TableRow>
</TableHead>
<TableBody>

View File

@ -43,8 +43,8 @@ class UserForm extends React.Component {
const { classes, user, creating, handleValueChange, handleCheckboxChange, onDoneEditing, onCancelEditing } = this.props;
return (
<ValidatorForm onSubmit={onDoneEditing} ref={this.formRef}>
<Dialog onClose={onCancelEditing} aria-labelledby="modify-user-dialog-title" open={true} scroll="paper">
<DialogTitle id="modify-user-dialog-title">Modify User</DialogTitle>
<Dialog onClose={onCancelEditing} aria-labelledby="user-form-dialog-title" open={true} scroll="paper">
<DialogTitle id="user-form-dialog-title">{creating ? 'Create' : 'Modify'} User</DialogTitle>
<DialogContent>
<TextValidator
validators={creating ? ['required', 'uniqueUsername', 'matchRegexp:^[a-zA-Z0-9_\\.]{1,24}$'] : []}