mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Simplify logic for showing autocompile onboarding
This commit is contained in:
parent
3e2388a7de
commit
8cd1f8c7ac
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue