diff options
-rw-r--r-- | webui/src/pages/bug/MessageHistoryDialog.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webui/src/pages/bug/MessageHistoryDialog.tsx b/webui/src/pages/bug/MessageHistoryDialog.tsx index 9d1578b2..139eb4a5 100644 --- a/webui/src/pages/bug/MessageHistoryDialog.tsx +++ b/webui/src/pages/bug/MessageHistoryDialog.tsx @@ -20,6 +20,7 @@ import { WithStyles, } from '@material-ui/core/styles'; import CloseIcon from '@material-ui/icons/Close'; +import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; import { AddCommentFragment } from './MessageCommentFragment.generated'; import { CreateFragment } from './MessageCreateFragment.generated'; @@ -199,15 +200,17 @@ function MessageHistoryDialog({ bugId, commentId, open, onClose }: Props) { onChange={handleChange('panel' + index)} > <AccordionSummary + expandIcon={<ExpandMoreIcon />} aria-controls="panel1d-content" id="panel1d-header" > <Typography> - {`#${index + 1} • Edited `} + {`#${history?.length - index} • Edited `} <Tooltip title={moment(edit.date).format('LLLL')}> <Moment date={edit.date} format="on ll" /> </Tooltip> {index === 0 && ' (most recent edit)'} + {index === history?.length - 1 && ' (Initial description)'} </Typography> </AccordionSummary> <AccordionDetails>{edit.message}</AccordionDetails> |