[MGNLUI-4334] ShowVersion action is forced to use detail as subappid Created: 05/Dec/17  Updated: 08/Mar/21  Resolved: 08/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.6
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Mercedes Iruela Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

info.magnolia.ui.contentapp.browser.action.ShowVersionsAction.getLocation() only allow to open versions when the subappid is 'detail':

 return new DetailLocation(appContext.getName(), "detail", DetailView.ViewType.VIEW, path, getVersionName());

It should be useful to allow include by configuration a property subAppId in the action (f.e, info.magnolia.ui.contentapp.detail.action.AbstractItemActionDefinition currently includes it), to be able to specify the name of the subappid. This is a small change that might be useful to allow users to work with multiple subapps and with multiple types (see SUPPORT-8185 for further information).



 Comments   
Comment by Roman Kovařík [ 08/Mar/21 ]

Closing this as new framework extends OpenDetailAction with configurable subApp https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/browse/magnolia-ui-framework/src/main/java/info/magnolia/ui/contentapp/action/ShowVersionActionDefinition.java#42

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