[MGNLUI-6591] Hide tabs without fields Created: 03/Mar/21 Updated: 16/Feb/22 Resolved: 10/Feb/22 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | 6.2.6 |
| Fix Version/s: | 6.2.17 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Richard Gange | Assignee: | Quach Hao Thien |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 1d 3h | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| 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)
|
||||||||
| Release notes required: |
Yes
|
||||||||
| Date of First Response: | |||||||||
| Sprint: | Nucleus 3 | ||||||||
| Story Points: | 2 | ||||||||
| Description |
|
I have dialog A (homepageNewSyntax.yaml)
label: Seiteneigenschaften
form:
properties:
- name: name
$type: textField
i18n: true
label: Seitenname
layout:
$type: tabbedLayout
tabs:
general:
label: Allgemein
fields:
- name: name
!include:/bn-main/dialogs/pages/homepageNewSyntax.yaml
form:
layout:
tabs:
general:
fields: !override
or even this:
!include:/bn-main/dialogs/pages/homepageNewSyntax.yaml
form:
layout:
tabs:
general: !override
Actual If I !override at field level I get an empty tab with correct tab label: Expected |
| Comments |
| Comment by Roman Kovařík [ 03/Mar/21 ] |
|
For the record this works in the old framework because of a hidden magic ("hide tabs with no fields"). |
| Comment by Richard Gange [ 03/Mar/21 ] |
|
Ok, I changed the title to reflect that. |
| Comment by Quach Hao Thien [ 10/Feb/22 ] |
|
For RN: TabbedLayout dialog will ignore to render tabs without fields |