-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Editor Media Google Photos: album / folder dropdown selector #25734
Editor Media Google Photos: album / folder dropdown selector #25734
Conversation
Makes parent media modal component responsible for handling selection of new Folder (made via dropdown). Detail of currently selected Folder is passed down prop chain and reflected in data query sent to API and also as part of props passed to component responsible for rendering list of Media # Conflicts: # client/my-sites/media-library/external-media-header.jsx
Enables the ability to disabled a SelectDropdown component by passing a disabled prop. This will cause the component to ignore all interactions and display with styles and aria attrs indicating it is disabled.
Previously the Dropdown would encounter problems when Media content was being loaded into the list of media. Disabling during fetching helps avoid this # Conflicts: # client/my-sites/media-library/style.scss
@johngodley
|
The last I looked the media library wasn't using redux, and so if you maintain folder state much like it is with search then the value can be passed to the request and passed along when a folder is chosen. And yep, making an initial request to populate the dropdown sounds like it will be necessary. I can't remember if albums are implemented in our API (or maybe they are untested), so we'll need to get that working too. They are present in Picasa so it shouldn't be a lot of work either way. |
Closing in favour of Direct PR from Automattic repo. |
Adds a dropdown to the Google Photos Modal within the editor in response to
#22771
Allows user to select an existing folder from their Google Photos Library (currently the Picasa API) and filter the list of photos to show only photos from that Album. Also allows user to select to show All Photos.