Opened 6 months ago
Closed 6 months ago
#22613 closed enhancement (fixed)
Media modal: Show a visual indication when settings will be saved
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | low | Milestone: | 3.5 |
| Component: | Media | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: |
Description
Since it's not clear, that the new media modal saves the settings on the fly, we should add a visual indication whenever the settings are saved.
Patch is a beginning, feel free to continue.
Attachments (8)
Change History (25)
I wanted to see if I could get the spinner right next to each input in 22613-option-b.diff. Not saying it's better - just another option.
comment:3
koopersmith — 6 months ago
- Keywords needs-refresh added
To apply cleanly to trunk, both patches need the first chunk of media-views.js refreshed.
- Keywords needs-refresh removed
I prefer 22613-option-b.refresh.diff%E2%80%8B, despite something that happened to the filename that makes Trac not highlight it :) Took me a while to find the spinner placed at the top - would probably not have noticed it if I wasn't looking.
In both cases the spinner does not go away if you've emptied the field, though it does seem to save the data successfully.
comment:6
koopersmith — 6 months ago
- Keywords has-patch needs-testing added; needs-patch removed
Patch implements the single-spinner variant, accounting for re-renders, multiple requests, and race conditions.
koopersmith — 6 months ago
Works! Want to make sure it doesn't collide with the "Attachment Details" text in translations, though - does funky things if they don't fit next to each other.
- Resolution set to fixed
- Status changed from new to closed
I inserted a huge string for Attachment Details and it seemed to handle it pretty well.
comment:10
ocean90 — 6 months ago
Shouldn't we do this for the gallery view too? For the description field?
comment:11
helenyhou — 6 months ago
comment:12
ocean90 — 6 months ago
- Keywords needs-patch added; has-patch needs-testing removed
- Resolution fixed deleted
- Status changed from closed to reopened
With the updated UI I think we should change the place of the spinner since it can be hidden now.
We should place it in the top bar (near the X), so it can be shown for the gallery view too.
comment:13
koopersmith — 6 months ago
- Priority changed from normal to low
comment:14
helenyhou — 6 months ago
- Keywords has-patch added; needs-patch removed
Testing 22613.4.diff, logging in (or rather, switching to) the following users. I have categories enabled for attachments, which shows a compat field, and uploaded attachments as administrator and author users.
- Author (the important part)
- Before: Can edit any field in all views but it won't actually save, although input will remain in the field for the duration of the page load for all views (not sure if this is desirable). User input does insert with the item.
- After: When in the insert workflow, it is the same, except that category input is readonly for items not uploaded by the user. When in the gallery workflow, all fields are readonly except for those for items uploaded by the user, including inline caption field.
- Administrator and Editor
- Before: can edit any field and it will save
- After: same
- Contributor
- Before: no access to the modal
- After: same
comment:15
helenyhou — 6 months ago
- Keywords needs-testing added
comment:17
markjaquith — 6 months ago
- Owner set to markjaquith
- Resolution set to fixed
- Status changed from reopened to closed
In 23072:


Good start.