Track autocompile setting change

This commit is contained in:
Alasdair Smith 2017-09-07 11:13:38 +01:00
parent 11386eb817
commit a8cdfb7ecc

View file

@ -91,6 +91,7 @@ define [
if newValue? and oldValue != newValue
localStorage("autocompile_enabled:#{$scope.project_id}", newValue)
toggleAutoCompile(newValue)
event_tracking.sendMB "autocompile-setting-changed", newValue
if window.user?.betaProgram and $scope.autocompile_enabled
toggleAutoCompile(true)