FLUID-6165: Prefs Editor Panels that have an enumerated set of options should replace the default array with the value from the primary scheme

Metadata

Source
FLUID-6165
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Justin Obara
Created
2017-07-04T15:36:38.599-0400
Updated
2017-07-06T09:36:21.928-0400
Versions
  1. 2.0
Fixed Versions
  1. 3.0
Component
  1. Prefs Framework
  2. UI Options

Description

For panels such as fluid.prefs.panel.textFont and fluid.prefs.panel.contrast read in a controlValues option from the related primary schema's "enum" property. These arrays should be replaced instead of merged to avoid any conflicts with the default. For example when the primarySchema's enumeration is shorter than the components default. To address this a merge police such as the following can be used:

mergePolicy: {
    "controlValues.theme": "replace"
}

Comments