[MGNLUI-3204] Provide action to download a versioned binary node Created: 14/Oct/14  Updated: 15/Oct/14  Resolved: 15/Oct/14

Status: Closed
Project: Magnolia UI
Component/s: content app
Affects Version/s: None
Fix Version/s: 5.3.5

Type: New Feature Priority: Neutral
Reporter: Philip Mundt Assignee: Philip Mundt
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Upload action in chooser.png     PNG File versionsSection.png    
Issue Links:
dependency
is depended upon by MGNLDAM-515 Provide a way to download a versioned... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

Currently there are only actions to show versions info.magnolia.ui.contentapp.browser.action.ShowVersionsAction and to download binary nodes info.magnolia.ui.framework.action.DownloadBinaryAction. There is no way to download a versioned binary node.

This action is required for the linked issue MGNLDAM-515.



 Comments   
Comment by Andreas Weder [ 14/Oct/14 ]

There's no icon available, but I'd like to suggest a different course of action: we offer a "Download image/video/..." button inside the read-only editing form opened by the "Show versions" action instead. This allows me to preview a particular version and directly download it.

The button would be a main action (i.e. a gray button in the bottom bar), but not the default button. We should probably make the "Cancel" button the (green) default button at the same time. Since the download action is not directly related to "Cancel", I'd move it the left side of the bar, similar to how we do it in the chooser dialog (see attached image).

A download button only needs to be available/shown, if the asset's media type supports a download. It should be shown but disabled, if the asset does not actually contain a medium.

This has the following advantages:

  • you can preview, before you download
  • you can open the preview of a version from anywhere else, and you'd still be able to download the medium.
  • the actions inside the "versioning" group focus on handling versions (previewing/comparing/restoring them), similar to their counterparts in Pages.
  • we don't have to add another action to the standard Action bar in Assets.

Ideally, we would have a "download" action on the media upload field itself, especially since we might have more than one medium inside an asset (or similar content type). Actually, this will have to be changed accordingly. Similarly, we would offer the same "download" button also inside the regular "add/edit asset" dialog. There, again, the button would actually have to reside on the media upload field itself. I'll add follow-up tickets for that.

Comment by Philip Mundt [ 14/Oct/14 ]

Reopening due to different suggested approach.

Comment by Philip Mundt [ 15/Oct/14 ]

New approach/positioning of this action doesn't require a new action. Instead we utilize info.magnolia.ui.framework.action.DownloadBinaryAction in the edit subApp of dam-app.

Comment by Philip Mundt [ 15/Oct/14 ]

Closing issue: see MGNLDAM-515 for implementation.

Generated at Mon Feb 12 09:04:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.