mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-15 03:34:44 +00:00
Merge "Send metrics when applying changes"
This commit is contained in:
commit
ef57986ce6
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue