[MGNLUI-3195] Enable opening a form-dialog from a choose-dialog Created: 08/Oct/14  Updated: 05/Dec/14  Resolved: 09/Oct/14

Status: Closed
Project: Magnolia UI
Component/s: content app, forms
Affects Version/s: None
Fix Version/s: 5.3.4

Type: Improvement Priority: Major
Reporter: Mikaël Geljić Assignee: Mikaël Geljić
Resolution: Fixed Votes: 0
Labels: choosedialog
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MGNLDAM-383 Open "edit asset" dialog when uploadi... 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)

 Description   

MGNLDAM-383 introduces a new feature: "Upload & edit" an asset in a dialog, directly from the assets choose-dialog.

In order to support this, the UI required minor adjustments, in particular because the choosedialog IoC container "inherits" from the one of the target app — not subapp (rightfully so):

  • make sure fields/factories get components from the choosedialog container (e.g. imageProvider for the DamUploadField).
  • pass on the subapp UiContext along, for the dialog to open in.
  • listen to {{ContentChangedEvent}}s in choose-dialog to refresh and select item when form-dialog is saved and closed.

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