title | issue |
---|---|
Replace sidebar media component by media modal |
NEXT-15948 |
- Changed watcher
user.avatarMedia
touser.avatarMedia.id
insrc/module/sw-profile/page/sw-profile-index/index.js
to fix the issue regarding preview avatar when changed new avatar. - Changed method
createdComponent
insrc/module/sw-profile/page/sw-profile-index/index.js
to get media default folder. - Changed method
saveUser
insrc/module/sw-profile/page/sw-profile-index/index.js
to check refsmediaSidebarItem
exist. - Changed block
sw_profile_index_router_view
insrc/module/sw-profile/page/sw-profile-index/sw-profile-index.html.twig
to update event@media-open
to open media modal instead of media sidebar. - Changed block
sw_profile_index_sidebar
insrc/module/sw-profile/page/sw-profile-index/sw-profile-index.html.twig
. - Added the methods in
src/module/sw-profile/page/sw-profile-index
module:openMediaModal
onMediaSelectionChange
.getMediaDefaultFolderId
to get media default folder Id.
- Added component
sw-media-modal-v2
insrc/module/sw-profile/page/sw-profile-index/sw-profile-index.html.twig
to replacesw-sidebar
component. - Deprecated component
sw-sidebar
in favor forsw-media-modal-v2
. The deprecation will be removed in v6.5.0.0.- The following methods got deprecated in
src/module/sw-profile/page/sw-profile-index
module:setMediaFromSidebar
openMediaSidebar
- The following refs got deprecated in
src/module/sw-profile/page/sw-profile-index
module:mediaSidebarItem
- The following methods got deprecated in