-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Improve openDialog method initialization #27566
Merged
magento-engcom-team
merged 28 commits into
magento:2.4-develop
from
Nazar65:support-new-media-gallery
Apr 22, 2020
Merged
Changes from 13 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
c839ecc
magento/adobe-stock-integration#935 : Loader stays over the media gal…
e5e23a8
magento/adobe-stock-integration#935 : Loader stays over the media gal…
7ba5410
magento/magento2#27566: Do not re-load the gallery app, just content
f8730c9
Refactor to change targetElementId dynamically
Nazar65 dba6863
cover new behavior with unit tests, static test fix
Nazar65 2da1025
corectly bind this
Nazar65 9b21471
update unit test
Nazar65 610cd62
use modalLoaded per review comments
Nazar65 26e4df5
correct unit tests
Nazar65 8a5def7
Merge branch '2.4-develop' into support-new-media-gallery
slavvka 2c74e2f
Merge branch '2.4-develop' into support-new-media-gallery
slavvka 67c2c0c
Improve opendialogurl configuration to be extensible
Nazar65 25e5df1
refactor pre review comments static test fix
Nazar65 e4cdee3
resolve dependency
Nazar65 d6fabe2
remove wrong added dependency
Nazar65 6f3cc44
Add openDialogConfig to all instance initialization
Nazar65 cbb1f4a
remove redundant dependency
Nazar65 b0afe12
Merge branch '2.4-develop' into support-new-media-gallery
slavvka 8f338a9
Merge branch '2.4-develop' into improve-opendialogurl-config
slavvka 9b75b8d
Merge branch '2.4-develop' into improve-opendialogurl-config
slavvka 15a1861
Merge branch '2.4-develop' into support-new-media-gallery
slavvka cdcf858
Add DataObject as configuration param, to be more extesible
Nazar65 c94a81c
Merge branch 'improve-opendialogurl-config' of https://github.com/Naz…
Nazar65 edf4017
correct event listener to reload media gallery
Nazar65 0abc548
Merge branch 'support-new-media-gallery' of https://github.com/Nazar6…
Nazar65 9387809
Merge branch '2.4-develop' of https://github.com/magento/magento2 int…
Nazar65 aa82c97
Merge remote-tracking branch 'origin/improve-opendialogurl-config' in…
Nazar65 41f7115
Merge branch '2.4-develop' into support-new-media-gallery
lenaorobei File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Please, re-use
modaLoaded
property, because removing it is backward-incompatible change.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.
ok, but then we need create a separate PR to remove this line https://github.com/magento/magento2-page-builder/blob/1605bd01f19e4b503aa97a0e78e9e828a81db0b3/app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element/image-uploader.js#L79 in PageBuilder Repository, because we have always overridden this property, and gallery will initialized second time
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.
done ✔️
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.
@omiroshnichenko @Nazar65 This class is not API, and we shouldn't follow backward compatibility here.
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.
Separate PR opened at PageBuilder repo. magento/magento2-page-builder#449