Send a tracks event for reordering dashboard sections.
This commit is contained in:
parent
c68fdde2e5
commit
29a46f0665
|
@ -127,6 +127,12 @@ class CustomizableDashboard extends Component {
|
||||||
// Yes, lets insert.
|
// Yes, lets insert.
|
||||||
sections.splice( newIndex, 0, movedSection );
|
sections.splice( newIndex, 0, movedSection );
|
||||||
this.updateSections( sections );
|
this.updateSections( sections );
|
||||||
|
|
||||||
|
const eventProps = {
|
||||||
|
key: movedSection.key,
|
||||||
|
direction: 0 < change ? 'down' : 'up',
|
||||||
|
};
|
||||||
|
recordEvent( 'dash_section_order_change', eventProps );
|
||||||
} else {
|
} else {
|
||||||
// No, lets try the next one.
|
// No, lets try the next one.
|
||||||
this.onMove( index, change + change );
|
this.onMove( index, change + change );
|
||||||
|
|
Loading…
Reference in New Issue