When preventing switching modes, don't log a type-specific action

Just log dialog-prevent-show.

Bug: T259673
Change-Id: I336ad745a3bd92b9a5d40fc0962be2084a6cc589
This commit is contained in:
David Lynch 2020-09-17 16:52:32 -05:00
parent 636ca06e7e
commit b988eca191

View file

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