VE integration: Remove "Warning:" label before CAPTCHA

It doesn't add anything and looks silly.
https://phabricator.wikimedia.org/F31677965

Change-Id: I94641a227d26622846ea8b300e8a3e9eb300b651
This commit is contained in:
Bartosz Dziewoński 2020-03-23 23:06:24 +01:00
parent a9093fd482
commit da4c75e387
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ mw.libs.ve.targetLoader.addPlugin( function () {
if ( self.widgetId ) {
window.grecaptcha.reset( self.widgetId );
} else {
target.saveDialog.showMessage( 'api-save-error', $container );
target.saveDialog.showMessage( 'api-save-error', $container, { wrap: false } );
self.widgetId = window.grecaptcha.render( $container[ 0 ], {
sitekey: siteKey,
callback: function () {

View file

@ -110,7 +110,7 @@ mw.libs.ve.targetLoader.addPlugin( function () {
// ProcessDialog's error system isn't great for this yet.
target.saveDialog.clearMessage( 'api-save-error' );
target.saveDialog.showMessage( 'api-save-error', $captchaDiv );
target.saveDialog.showMessage( 'api-save-error', $captchaDiv, { wrap: false } );
target.saveDialog.popPending();
// Emit event for tracking. TODO: This is a bad design