-
Notifications
You must be signed in to change notification settings - Fork 600
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
Conversation
@@ -46,7 +48,10 @@ class Chat extends Widget<Properties> { | |||
|
|||
super._initMarkup(); | |||
|
|||
this._renderHeader(); | |||
if (shouldHeaderBeRendered) { |
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.
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.
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.
You are proposing an implementation that is too complex.
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.
[1b9f995]
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.
Also, now, we must support all scenarios with title change in runtime
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.
[b2a70f9]
No description provided.