Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

fix(RHINENG-11369): CreateGroupModal returns to previous modal#887

Merged
ezr-ondrej merged 1 commit into
RedHatInsights:masterfrom
darkeriossss:create-group-modal-fix
Mar 26, 2025
Merged

fix(RHINENG-11369): CreateGroupModal returns to previous modal#887
ezr-ondrej merged 1 commit into
RedHatInsights:masterfrom
darkeriossss:create-group-modal-fix

Conversation

@darkeriossss
Copy link
Copy Markdown
Contributor

Description

Fixes issue, where Create Workspace Modal closed it's host modal as well on cancel
Also fixed small issue with Toolbar spacing when using table in Inventory

Fixes # RHINENG-11369

Type of change

What is it?

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation update
  • Tests update

Copy link
Copy Markdown
Member

@ezr-ondrej ezr-ondrej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for looking into it! 🧡 Just one question, looks good apart of it ;)

'create-group-btn': {
component: CreateGroupButton,
closeModal: () => {
setIsCreateGroupModalOpen(true);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question, I'm just not sure here:
Why don't we call setIsModalOpen(false) here anymore?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it causes the entire component to be removed from the DOM (src/Routes/Devices/Inventory.js, line 365) and since the child modal is exactly that (a child modal), it needs the host modal to be in the DOM

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha! :)

@darkeriossss darkeriossss force-pushed the create-group-modal-fix branch from 6d0f42d to 0c0e403 Compare March 26, 2025 12:38
@InsightsDroid
Copy link
Copy Markdown

❗ Outdated dependencies error

  • Installed version of react-router-dom (5.3.4) is older than required version (6.0.0)

Copy link
Copy Markdown
Member

@ezr-ondrej ezr-ondrej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🧡

@ezr-ondrej ezr-ondrej merged commit aa8131b into RedHatInsights:master Mar 26, 2025
5 checks passed
@darkeriossss darkeriossss deleted the create-group-modal-fix branch March 26, 2025 13:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants