1
0
Fork 0
mirror of https://github.com/etkecc/synapse-admin.git synced 2025-05-09 20:50:09 +03:00

Add pristine to UserEdit and ServerNotice ()

This commit is contained in:
Dirk Klimpel 2021-11-15 21:02:47 +01:00 committed by GitHub
parent 1a17d3e69b
commit 42b3252353
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions
src/components

View file

@ -238,7 +238,7 @@ const UserEditToolbar = props => {
const translate = useTranslate();
return (
<Toolbar {...props}>
<SaveButton submitOnEnter={true} />
<SaveButton submitOnEnter={true} disabled={props.pristine} />
<DeleteButton
label="resources.users.action.erase"
confirmTitle={translate("resources.users.helper.erase", {