Merge "Send metrics when applying changes"

This commit is contained in:
jenkins-bot 2020-12-07 11:15:47 +00:00 committed by Gerrit Code Review
commit ef57986ce6

View file

@ -1537,6 +1537,9 @@ Dialog.prototype.getActionProcess = function ( action ) {
}
if ( action === 'apply' ) {
return new OO.ui.Process( function () {
Metrics.logEvent( this.model.getOriginalTemplateDataObject() ?
'save-page-edit' : 'save-page-create' );
this.emit( 'apply', this.model.outputTemplateData() );
this.close( { action: action } );
}, this );