-
Notifications
You must be signed in to change notification settings - Fork 17
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
LHC-189 #72
Conversation
… name on ticket view
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.
|
||
const orgNamePlaceholder = document.getElementById('orgNamePlaceholder'); | ||
|
||
orgNamePlaceholder.innerHTML = orgName; |
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.
We should check to make sure orgNamePlaceholder
is not null or undefined.
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.
orgNamePlaceholder
is a div
in the template. Even if a Zendesk Curlybar helper were to fail, that div would still get rendered. Do we still need to null check?
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.
I would do it as a fail safe for the JS side just in case someone removed it accidentally or something happened further down the line which they were unaware of the ramifications. Always better to be safe than sorry with a simple check.
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.
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.
Thanks @rdai10!
Description
https://issues.liferay.com/browse/LHC-189
Due to the way the Zendesk Customization is set, customers for a long project name are not able to view the full project name. To get around that, the team decided to grab the value from the dropdown and hide it. Then display that value separately as text. That way the text will naturally wrap and allow the customer to see the entire organization name.