Skip to content
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

Fixed Duplicate Buttons in Skeleton Point Config Modal (#9070) #9137

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

shwetd19
Copy link

Motivation and Context

Fixes Issue #9070: duplicate buttons ("Done" & "Cancel" and "Cancel" & "OK") in the skeleton point configuration modal.

How Has This Been Tested?

  • Applied changes, rebuilt CVAT with npm run build and docker-compose up -d --build, tested in Chrome: only "Done" & "Cancel" appear and work.

Changes

  • File: cvat-ui/src/components/labels-editor/skeleton-element-context-menu.tsx
  • Code:
    • Added footer={null} to <Modal> to disable default Ant Design footer.
    • Updated cancelButtonProps and okButtonProps to { style: { display: 'none' } } from { hidden: true }.

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues

License

  • I submit my code changes under the same MIT License that covers the project.

Closes #9070.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate buttons in the skeleton point configuration window
1 participant