-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/disable cancel button on save #6204
Fix/disable cancel button on save #6204
Conversation
- add a `isCancelDisabled` prop to the `CancelButton` component - update the prop in related pages: new object, edit object, new field and edit field pages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
- Introduced
disabled
prop toCancelButton
in/packages/twenty-front/src/modules/settings/components/SaveAndCancelButtons/CancelButton.tsx
- Added
isCancelDisabled
prop toSaveAndCancelButtons
in/packages/twenty-front/src/modules/settings/components/SaveAndCancelButtons/SaveAndCancelButtons.tsx
- Disabled cancel button during form submission in
/packages/twenty-front/src/pages/settings/data-model/SettingsNewObject.tsx
- Disabled cancel button during form submission in
/packages/twenty-front/src/pages/settings/data-model/SettingsObjectEdit.tsx
- Disabled cancel button during form submission in
/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx
6 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
(updates since last review)
- Refetch queries after navigating to the object page for data consistency (
/packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldStep2.tsx
) - Disable cancel button during form submission to prevent user actions (
/packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldStep2.tsx
)
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work again!!! Thanks a lot
Thanks @pacyL2K19 for your contribution! |
This PR
Similarly to #5673 I have improved the field creation time by re-fetching data on page redirection to the object page
@FellipeMTX @Bonapara