Log when editor switching is prevented

feature: editor-switch
action: dialog-prevent-table-show / dialog-prevent-template-show /
dialog-prevent-extension-show

Bug: T257501
Change-Id: Id0704c082d98504b84795c38a2f4ff372f8c51da
This commit is contained in:
David Lynch 2020-07-28 12:19:36 -05:00
parent a4862d24e0
commit 6cf2f9ac56

View file

@ -433,6 +433,11 @@ CommentController.prototype.switchToVisual = function () {
size: 'medium'
}
);
mw.track( 'dt.schemaVisualEditorFeatureUse', {
feature: 'editor-switch',
action: 'dialog-prevent-' + type + '-show'
} );
return $.Deferred().reject().promise();
}
}