-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
KEYCLOAK-9387: Add hor scroll & tooltips to role selectors #5866
Conversation
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 for the fix!
I left just one comment/question, but it seems it will probably not require any changes in the PR.
For now, I am adding the label "Hold" as AFAIK the master is still not yet opened for fixes (besides test related fixes).
@@ -196,6 +196,13 @@ module.factory('ComponentUtils', function() { | |||
|
|||
var utils = {}; | |||
|
|||
utils.findIndexById = function(array, id) { |
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.
Just FYI. that there is builtin method "indexOf" - https://www.w3schools.com/jsref/jsref_indexof_array.asp . However it seems it is supported for some newer versions (Especially IE from 9), so it is probably safer to go with our own method? Leaving to you as you probably know better which browsers is admin console supposed to run with.
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.
indexOf won't work for this. The objects are not actually equal. Only the id is the same. That's why I had to write my own findIndexById method.
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.
Or to be more specific, the object's elements are the same but it is not the same object instance, so indexOf doesn't work.
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.
@ssilvert ah, ok. Thanks!
@keycloak-ci-bot test |
@pdrozd Job is scheduled |
No description provided.