Catrope has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/398202 )
Change subject: Disable RCFilters in mobile view ...................................................................... Disable RCFilters in mobile view Bug: T181545 Depends-On: I3a0a139e994a1447b1e783081bcc14e6daee21a1 Change-Id: I2cb6954a3a62d4ea9106784351506967bcb1873a --- M extension.json M includes/MobileFrontend.hooks.php 2 files changed, 19 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend refs/changes/02/398202/1 diff --git a/extension.json b/extension.json index d650d4d..0fc400a 100644 --- a/extension.json +++ b/extension.json @@ -1217,6 +1217,9 @@ ], "TitleSquidURLs": [ "MobileFrontendHooks::onTitleSquidURLs" + ], + "ChangesListSpecialPageStructuredFilterUiEnabled": [ + "MobileFrontendHooks::onChangesListSpecialPageStructuredFilterUiEnabled" ] }, "config": { diff --git a/includes/MobileFrontend.hooks.php b/includes/MobileFrontend.hooks.php index 359e956..8ca7113 100644 --- a/includes/MobileFrontend.hooks.php +++ b/includes/MobileFrontend.hooks.php @@ -1277,4 +1277,20 @@ $ctx = MobileContext::singleton(); $result['mobileserver'] = $ctx->getMobileUrl( $wgCanonicalServer ); } + + /** + * Disable the structured filters UI (RCFilters) in mobile view. + * @param ChangesListSpecialPage $special + * @param bool $enabled Whether to enable the structured filters UI + * @return bool + */ + public static function onChangesListSpecialPageStructuredFilterUiEnabled( + ChangesListSpecialPage $special, &$enabled + ) { + // Disable structured filters in mobile view + if ( MobileContext::singleton()->shouldDisplayMobileView() ) { + $enabled = false; + return false; + } + } } -- To view, visit https://gerrit.wikimedia.org/r/398202 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2cb6954a3a62d4ea9106784351506967bcb1873a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MobileFrontend Gerrit-Branch: master Gerrit-Owner: Catrope <r...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits