Add pristine to UserEdit and ServerNotice (#185)

This commit is contained in:
Dirk Klimpel
2021-11-15 21:02:47 +01:00
committed by GitHub
parent 1a17d3e69b
commit 42b3252353
2 changed files with 5 additions and 2 deletions

View File

@@ -24,7 +24,10 @@ const ServerNoticeDialog = ({ open, loading, onClose, onSend }) => {
const ServerNoticeToolbar = props => (
<Toolbar {...props}>
<SaveButton label="resources.servernotices.action.send" />
<SaveButton
label="resources.servernotices.action.send"
disabled={props.pristine}
/>
<Button label="ra.action.cancel" onClick={onClose}>
<IconCancel />
</Button>