Skip to content

Commit aa872f4

Browse files
committed
RCFilters: Allow experimental live update feature to be enabled with query string parameter
For testing. Adding ?liveupdate=1 to the URL will unhide the live update button. Bug: T167743 Change-Id: I2696da959d34adf952f7f2fa6477ab756ef259bd
1 parent ec27b35 commit aa872f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterWrapperWidget.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@
5858
$bottom = $( '<div>' )
5959
.addClass( 'mw-rcfilters-ui-filterWrapperWidget-bottom' );
6060

61-
if ( mw.config.get( 'wgStructuredChangeFiltersEnableLiveUpdate' ) ) {
61+
if (
62+
mw.config.get( 'wgStructuredChangeFiltersEnableLiveUpdate' ) ||
63+
// Allow users to enable live update with ?liveupdate=1
64+
new mw.Uri().query.liveupdate
65+
) {
6266
$bottom.append( this.liveUpdateButton.$element );
6367
}
6468

0 commit comments

Comments
 (0)