[MGNLUI-6622] Non editable link field should not display remove button Created: 15/Mar/21 Updated: 23/Mar/21 Resolved: 22/Mar/21 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | 6.2.7 |
| Fix Version/s: | 6.2.7 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Martin Haderka | Assignee: | Martin Haderka |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 2h 41m | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Template: | |||||||||
| Acceptance criteria: |
[X]*
LinkField item has "Select new" button after a value is selected (editable = true)
[X]*
LinkField item has NO "x" and "Select new" button after a value is selected (editable = false)
|
||||||||
| 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: |
[X]*
Steps to reproduce, expected, and actual results filled
[X]*
Affected version filled
|
||||||||
| Date of First Response: | |||||||||
| Epic Link: | Improve Content Linking | ||||||||
| Sprint: | UI FW 24 | ||||||||
| Story Points: | 2 | ||||||||
| Description |
Steps to reproduce1. Open https://demo.magnolia-cms.com/.magnolia/admincentral#app:pages-app:detail;/travel:edit with Expected results7. "x" button shouldn't be available Actual results7. Clicking on "x" button will cause blank item (see attached screen recording) WorkaroundRemove blank item with trash icon NoteTour Carousel has editable = false, therefore it shouldn't be possible to change a value after selecting one |
| Comments |
| Comment by Roman Kovařík [ 15/Mar/21 ] |
|
As a side note, info.magnolia.ui.field.AbstractLinkField#setButtonCaptionAndDescription seems to be redundant as the chooser button label is not changed dynamically anymore. |