Simplify logic for showing autocompile onboarding

This commit is contained in:
Alasdair Smith 2017-09-28 14:13:51 +01:00
parent 3e2388a7de
commit 8cd1f8c7ac

View file

@ -74,12 +74,11 @@ define [
pdfLayout: 'sideBySide' pdfLayout: 'sideBySide'
pdfHidden: false, pdfHidden: false,
pdfWidth: 0, pdfWidth: 0,
reviewPanelOpen: localStorage("ui.reviewPanelOpen.#{window.project_id}") reviewPanelOpen: localStorage("ui.reviewPanelOpen.#{window.project_id}"),
miniReviewPanelVisible: false, miniReviewPanelVisible: false,
showAutoCompileOnboarding: window.user.betaProgram and window.showAutoCompileOnboarding
} }
$scope.onboarding = { $scope.onboarding = {
autoCompile: 'unseen' autoCompile: if window.user.betaProgram and window.showAutoCompileOnboarding then 'unseen' else 'dismissed'
} }
$scope.user = window.user $scope.user = window.user