[MGNLUI-1643] App launcher does not reflect order of groups when new groups are added Created: 12/Jun/13  Updated: 18/Jun/13  Resolved: 14/Jun/13

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

Type: Bug Priority: Neutral
Reporter: Tobias Mattsson Assignee: Tobias Mattsson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLUI-1565 Change color and ordering of app groups 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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Sprint: RC 2

 Description   

The launcher keeps an internal list of the order, but it doesnt clear it when the layout changes. If you add a group web this is what happens:

  • at the start the list is: [edit, manage]
  • then web comes in and it reloads, the list is then: [edit, manage, edit, web, manage]
  • then if it reloads again its [edit, manage, edit, web, manage, edit, web, manage]

The fix is to add

getState().groupsOrder.clear();

in info.magnolia.ui.vaadin.applauncher.AppLauncher#clear


Generated at Mon Feb 12 08:48:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.