mediawiki-extensions-Popups/resources
joakin 212dcf1d55 Update the settings enabled radio with the enabled state
When opening the settings dialog, the form didn't represent the current
enabled status of the application. This change makes sure that every
time the form is shown, the form state represents the current
application state.

If the application is enabled, then the 'simple' (Enabled) option is
selected on the form. If it is disabled then if there's Navigation
popups, it selects 'advanced' (Advanced popups), if there are not, it
selects 'off' (Disabled).

Changes:
* Change listeners
  * Set the form state every time the form is going to be shown
    * Update tests
* Supporting changes
  * Add settingsDialog#setEnabled which updates the DOM form based on the
    enabled flag and the navpops state
  * Extract isNavPopupsEnabled function in settingsDialog.js to be used in the
    form creation and also when setting the form enabled state
  * Add test verifying changeListeners#settings shows and sets enabled state
    properly when showing the dialog more than one time

Change-Id: Ic660f48d9a78e47c09a192ab86681196d2e01d61
2016-12-16 10:29:34 +00:00
..
ext.popups Update the settings enabled radio with the enabled state 2016-12-16 10:29:34 +00:00
ext.popups.core previews: Tidy up styles 2016-11-29 18:11:11 +00:00
ext.popups.desktop Introduce the settings dialog UI 2016-12-13 11:42:21 +01:00
ext.popups.images Hovercards: Improve layout of settings dialog to design spec 2016-08-10 14:01:36 -04:00
ext.popups.lib Use Redux and Redux Thunk 2016-11-08 15:33:20 -05:00
ext.popups.schemaPopups Hygiene: Rename getMassagedData to processHovercardEvent 2016-10-31 11:25:09 +00:00
ext.popups.schemaPopups.utils Hygiene: Rename getMassagedData to processHovercardEvent 2016-10-31 11:25:09 +00:00