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

Chat: Hide title prop and prevent Header rendering #27970

Merged
merged 5 commits into from
Aug 30, 2024

Conversation

marker-dao
Copy link
Contributor

No description provided.

@marker-dao marker-dao requested a review from a team August 29, 2024 12:33
@marker-dao marker-dao self-assigned this Aug 29, 2024
@marker-dao marker-dao requested review from a team as code owners August 29, 2024 12:33
@@ -46,7 +48,10 @@ class Chat extends Widget<Properties> {

super._initMarkup();

this._renderHeader();
if (shouldHeaderBeRendered) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It is strange to see a magic variable used to prevent the chat header from rendering. It's better to check that the default value has not been changed; that should be sufficient. We discussed this way.

This approach also allows us to test it in the usual way without using global variables or QUnit.skip.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are proposing an implementation that is too complex.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also, now, we must support all scenarios with title change in runtime

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@marker-dao marker-dao closed this Aug 30, 2024
@marker-dao marker-dao reopened this Aug 30, 2024
@marker-dao marker-dao merged commit cbba54f into DevExpress:24_2 Aug 30, 2024
543 of 544 checks passed
@marker-dao marker-dao deleted the 24_2_chat_hide_header branch August 30, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants