[MGNLUI-8437] Introduce imageUrl into chooseAsset Action under JS on 6.3 Created: 12/Oct/23  Updated: 24/Oct/23  Resolved: 24/Oct/23

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

Type: Bug Priority: Neutral
Reporter: Alberto Soto Assignee: Jaromir Sarf
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MGNLDAM-1218 Introduce imageUrl into chooseAsset A... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: 6.3 Consolidation
Sprint: Nucleus 47
Story Points: 0
Team: Nucleus
Work Started:
Approved:
Yes

 Description   

 

Steps to reproduce

1 - Introduce a dialog with the following

description:
$type: richTextField
label: Description
height: 600
i18n: true
images: true

2 - Upload an image

3 - Edit the component/page again select the image in the rich text field and trey to change it to other one

Expected results

The image is preselected in the DAM selector dialog

Actual results

Root element in selected

Workaround

The event relies in a java callback executed from the JS side

Development notes

  • magnolia-ui-framework-jcr/src/main/resources/VAADIN/js/filebrowser/plugin.js L50 launches chooseAsset action
  • Additional parameter can be injected with the asset url

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