Log an event when the lede button is clicked

Bug: T314596
Change-Id: Ifb5c9eb3cfac8b217546d4945e6f39ce38251e1e
This commit is contained in:
David Lynch 2022-12-15 11:27:26 -06:00
parent 9cc104cb88
commit 0db7b997f3

View file

@ -80,6 +80,7 @@ function init( $container ) {
OO.ui.infuse( $ledeButton ).on( 'click', function () {
mw.loader.using( 'oojs-ui-windows' ).then( function () {
windowManager.openWindow( 'ledeSection', { $content: $ledeContent } );
mw.track( 'webuiactions_log.click', 'lede-button' );
} );
} );
}