-
Notifications
You must be signed in to change notification settings - Fork 15
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
IBX-8436: Added modal helper #1320
base: 4.6
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
Quality Gate passedIssues Measures |
super(config); | ||
|
||
this.suggestionsListNode = config.suggestionsListNode ?? this.container.querySelector('.ibexa-taggify__suggestions'); | ||
this.token = config.token ?? doc.querySelector('meta[name="CSRF-Token"]').content; |
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 have currently helpers for extracting these, so maybe it can be used here?
import { getRestInfo } from '@ibexa-admin-ui/src/bundle/Resources/public/js/scripts/helpers/context.helper';
...
const { siteaccess, token } = getRestInfo()
return; | ||
} | ||
|
||
if (this.inputNode.value.length > 3) { |
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.
Put 3 to some const at the begininng to remove this magic number, I guess that's min number of characters needed to perform search?
const tag = div.querySelector('.ibexa-taggify__list-tag'); | ||
|
||
this.attachEventsToTag(tag, value); | ||
|
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 think these empty lines are unnecessary here? (31, 33, 35)
Description:
For QA:
Documentation: