Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions frontend/src/components/dialogs/EditEnumDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import React, {createRef, useState} from 'react';
import {
Button,
Dialog,
DialogActions,
DialogContent as MuiDialogContent,
DialogTitle as MuiDialogTitle,
IconButton,
Menu,
MenuItem,
styled,
Tooltip,
Typography,
useTheme
} from '@mui/material';
import {
Expand Down Expand Up @@ -258,6 +260,13 @@ export default function EditEnumDialog(props) {
<MenuItem onClick={() => sortItems('text', true)}>Text: Z → A</MenuItem>
</Menu>
</DialogContent>
{/* the footer closes the list (no pagination any more); the height of the former pagination, which
getDialogTableHeight leaves for it */}
<DialogActions sx={{minHeight: 52, justifyContent: 'flex-start', px: 2}}>
<Typography variant='body2' color='text.secondary'>
{data.length === 1 ? '1 item' : `${data.length} items`}
</Typography>
</DialogActions>
</Dialog>
<MessageBox
config={messageBox}
Expand Down
Loading