Merge "Log when the advanced mode panel is toggled"

This commit is contained in:
DLynch 2020-09-14 22:39:32 +00:00 committed by Gerrit Code Review
commit aab80e8641

View file

@ -277,6 +277,10 @@ ReplyWidget.prototype.saveEditMode = function ( mode ) {
};
ReplyWidget.prototype.onAdvancedToggleClick = function () {
mw.track( 'dt.schemaVisualEditorFeatureUse', {
feature: 'dtReply',
action: 'advanced-' + ( this.showAdvanced ? 'hide' : 'show' )
} );
this.toggleAdvanced();
};