-
Notifications
You must be signed in to change notification settings - Fork 79
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
"(Edit) Details" button only visible if grid shows the page of selected file #1136
Comments
I've spent the last day trying to figure out why the "Details" button was showing for some images and not others - I can confirm it seems to be based on whether the image is on the visible page in the image browser on the left. In fact, if you switch between pages, the "Details" button is displayed/removed as you move on/off the relevant page. |
I'm also experiencing this. |
I have had to send an email to several clients highlighting this issue, so In my opinion this is a major. |
FYI, our team are planning to get started on a fix for this in the next 2-3 weeks. |
The details button depends on the file being passed to the The rest of the |
Just summarising the discussion we had on Slack. Part of the problem is on this line: silverstripe-asset-admin/client/src/containers/Editor/Editor.js Lines 218 to 223 in f96d0f8
The purpose of this snippet is to decide what action should happen when you click the "Details" button. If no action is provided, then the button doesn't show at all. The reason we are checking if the file is a folder is that the insert modal allows you to edit folders, but not to insert them. Se when the Editor loads a folder, it's already editing the "details" of the folder. So there isn't any point in showing the "Details" button. What silverstripe-asset-admin/client/src/containers/AssetAdmin/AssetAdmin.js Lines 525 to 529 in f96d0f8
Caching the result set is not really an option. GraphQL caching is kind of difficult ... there's ways we could get it done with Apollo, but implementing it has far reaching implication that goes way beyond the scope of this card. Plus, it's not going to solve the problem when you directly access a file for edition that is not on the first page. There's two approaches we could take to solve this problem:
|
Just following up. I think a natural way to split this would be to:
The first bit is probably a ~5 and could have other uses elsewhere. Second bit is probably something like a ~3. |
+1 we have also had to revert our recipe version (on serveral sites) to bring back our asset-admin to v 1.5.2. Is there any workaround known? |
We have just had this pop up again from another client. It would be good to get this sorted. Unfortunately, this isnt on a level that we feel we could submit a PR, as it requires a significant amount of work and deep knowledge of the assets backend/client side. |
This is still an issue. Given the earlier comment about effort to investigate and solve this, can I petition the team to increase the priority of this issue? Please and thank you 😅
|
There's a page on silverstripe.org that lists the patched security issues, including the version number they were fixed:
I've picked this issue up to have look at, though I cannot provide an ETA at this stage |
|
Got a proof of concept solution #1225 |
Linked PR has been merged |
Fix has been release in 1.8.3 |
@maxime-rainville Is there a trick to getting this installed via recipe-cms, which constrains asset-admin to 1.8.0@stable? |
@quamsta you'd run |
Thank you! |
Given a folder with so many images that the don't fit on one page of the asset admin overlay and an UploadField.
I would expect the overlay to automatically show the relevant page with the selected image. And the "Details" button should be visible independent of the page selected.
PRs
FIX Save fetched files so details button works after pagination #1221The text was updated successfully, but these errors were encountered: