[MGNLUI-3774] Provide action which delegates to another action by node type Created: 16/Feb/16  Updated: 15/Apr/16  Resolved: 31/Mar/16

Status: Closed
Project: Magnolia UI
Component/s: content app
Affects Version/s: 5.4.4
Fix Version/s: 5.4.6

Type: Improvement Priority: Neutral
Reporter: Christian Ringele Assignee: AntonĂ­n Juran
Resolution: Fixed Votes: 0
Labels: quickwin, support
Remaining Estimate: 0d
Time Spent: 0.25h
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLUI-3837 Action to expand folders Closed
dependency
is depended upon by MGNLUI-3820 Provide task for adding delegate acti... Closed
relation
is related to MGNLUI-3821 Provide API for collapse node Closed
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:
Sprint: Kromeriz 37
Story Points: 5

 Description   

Our content apps allows us to manage nodes of different types. The defaultAction property of an ActionBar definition allows to specify the name of the action executed if a user double-clicks on an item (see here in the documentation).

However, this defaultAction property is type-agnostic - we can only define an action for all node types. We thus can't map each node type to a different detail app to e.g. edit that node type. It would be very useful to have a defaultAction property per node type.

It seems that Jan's "Magnolia neat tweaks" module available at https://github.com/rah003/neat-tweaks already seems to offer a Java class implementing this feature - this could actually be a quick win.



 Comments   
Comment by Christian Ringele [ 16/Feb/16 ]

Within this support ticket, customer asked about such a class/Action.

Comment by Jan Haderka [ 14/Mar/16 ]

Use case (in Assets or Contacts or Categorization):

  • default action for folder is to open/expand the folder
  • default action for the type (asset, contact, category) is to open edit dialog.
Comment by AntonĂ­n Juran [ 31/Mar/16 ]

In this ticket was implemented action which delegates to another action by node type. Default action per node types will be configured using the delegating action in ticket MGNLUI-3820.

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