Log when the advanced mode panel is toggled

Bug: T261816
Change-Id: Iadd17b4f5280fc09d7a16a64bb709bab1a1a09d5
This commit is contained in:
David Lynch 2020-09-14 13:46:59 -05:00 committed by Bartosz Dziewoński
parent ebaa132ebf
commit 5b20503ec2

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();
};