-
Notifications
You must be signed in to change notification settings - Fork 16
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-1007: [Admin UI] As a developer I want to have js code style used in code #336
Conversation
const { hasAsset } = toggleForm.dataset; | ||
const { hasUniqueAsset } = toggleForm.dataset; |
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 { hasAsset } = toggleForm.dataset; | |
const { hasUniqueAsset } = toggleForm.dataset; | |
const { hasAsset, hasUniqueAsset } = toggleForm.dataset; |
const { contentDraftEditUrl } = event.currentTarget.dataset; | ||
const { versionHasConflictUrl } = event.currentTarget.dataset; | ||
const { contentId } = event.currentTarget.dataset; | ||
const { languageCode } = event.currentTarget.dataset; |
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 { contentDraftEditUrl } = event.currentTarget.dataset; | |
const { versionHasConflictUrl } = event.currentTarget.dataset; | |
const { contentId } = event.currentTarget.dataset; | |
const { languageCode } = event.currentTarget.dataset; | |
const { contentDraftEditUrl, versionHasConflictUrl, contentId, languageCode } = event.currentTarget.dataset; |
onConfirm: confirmHandler, | ||
onCancel: cancelHandler, | ||
}); | ||
const mergedConfig = { ...config, onConfirm: confirmHandler, |
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 mergedConfig = {
...config,
onConfirm: confirmHandler,
onCancel: cancelHandler,
};
?? :)
@@ -30,15 +29,13 @@ | |||
btn.addEventListener( | |||
'click', | |||
() => { | |||
const actions = doc.querySelector(`.ibexa-extra-actions[data-actions="${btn.dataset.actions}"]`);if (btn.dataset.validate && !parseInt(btn.dataset.isFormValid, 10)) { | |||
const actions = doc.querySelector(`.ibexa-extra-actions[data-actions="${btn.dataset.actions}"]`); if (btn.dataset.validate && !parseInt(btn.dataset.isFormValid, 10)) { |
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 actions = doc.querySelector(`.ibexa-extra-actions[data-actions="${btn.dataset.actions}"]`); if (btn.dataset.validate && !parseInt(btn.dataset.isFormValid, 10)) { | |
const actions = doc.querySelector(`.ibexa-extra-actions[data-actions="${btn.dataset.actions}"]`); | |
if (btn.dataset.validate && !parseInt(btn.dataset.isFormValid, 10)) { |
'X-CSRF-Token': token, | ||
}), | ||
headers: { ...HEADERS_CREATE_VIEW, 'X-Siteaccess': siteaccess, | ||
'X-CSRF-Token': token }, |
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.
headers: {
...HEADERS_CREATE_VIEW,
"X-Siteaccess": siteaccess,
"X-CSRF-Token": token,
},
?
75f99f1
to
ffe8839
Compare
ffe8839
to
14864e4
Compare
Related:
ibexa/eslint-config-ibexa#5
Checklist:
$ composer fix-cs
)