Check if user is part of autocompile rollout when showing setting or running autocompile

This commit is contained in:
Alasdair Smith 2017-10-03 17:19:51 +01:00
parent 8366ea271f
commit 550e7d75ca
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ div.full-size.pdf(ng-controller="PdfController")
span.caret
ul.dropdown-menu.dropdown-menu-left
// Only show on beta program?
if user.betaProgram
if user.betaProgram || showAutoCompileOnboarding
li.dropdown-header
| #{translate("auto_compile")}
span.beta-feature-badge

View file

@ -109,7 +109,7 @@ define [
toggleAutoCompile(newValue)
event_tracking.sendMB "autocompile-setting-changed", { value: newValue }
if window.user?.betaProgram and $scope.autocompile_enabled
if (window.user?.betaProgram or window.showAutoCompileOnboarding) and $scope.autocompile_enabled
toggleAutoCompile(true)
# abort compile if syntax checks fail