mirror of
https://github.com/strapi/strapi.git
synced 2025-08-06 07:50:02 +00:00
Merge pull request #17102 from nitinmadelyn/profile-improvement
This commit is contained in:
commit
c593a2735b
@ -197,13 +197,13 @@ const ProfilePage = () => {
|
||||
validationSchema={schema}
|
||||
enableReinitialize
|
||||
>
|
||||
{({ errors, values, handleChange, isSubmitting }) => {
|
||||
{({ errors, values, handleChange, isSubmitting, dirty }) => {
|
||||
return (
|
||||
<Form>
|
||||
<HeaderLayout
|
||||
title={data.username || getFullName(data.firstname, data.lastname)}
|
||||
primaryAction={
|
||||
<Button startIcon={<Check />} loading={isSubmitting} type="submit">
|
||||
<Button startIcon={<Check />} loading={isSubmitting} type="submit" disabled={!dirty}>
|
||||
{formatMessage({ id: 'global.save', defaultMessage: 'Save' })}
|
||||
</Button>
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user