mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Rename stuff to refer to the new onboarding feature.
This commit is contained in:
parent
6d35703963
commit
1ef5cc97fc
2 changed files with 11 additions and 3 deletions
|
@ -69,7 +69,7 @@ define [
|
|||
chatOpen: false
|
||||
pdfLayout: 'sideBySide'
|
||||
reviewPanelOpen: localStorage("ui.reviewPanelOpen.#{window.project_id}")
|
||||
showCodeCheckerOnboarding: !window.userSettings.syntaxValidation?
|
||||
showCollabFeaturesOnboarding: true #!window.userSettings.syntaxValidation?
|
||||
}
|
||||
$scope.user = window.user
|
||||
|
||||
|
|
|
@ -4,10 +4,18 @@ define [
|
|||
App.controller "FeatureOnboardingController", ($scope, settings) ->
|
||||
$scope.onboarding =
|
||||
innerStep: 1
|
||||
nSteps: 4
|
||||
|
||||
$scope.dismiss = () ->
|
||||
$scope.ui.leftMenuShown = false
|
||||
$scope.ui.showCodeCheckerOnboarding = false
|
||||
$scope.ui.showCollabFeaturesOnboarding = false
|
||||
|
||||
$scope.gotoPrevStep = () ->
|
||||
if $scope.onboarding.innerStep > 1
|
||||
$scope.onboarding.innerStep--;
|
||||
|
||||
$scope.gotoNextStep = () ->
|
||||
if $scope.onboarding.innerStep < 4
|
||||
$scope.onboarding.innerStep++;
|
||||
|
||||
# handleKeypress = (e) ->
|
||||
# if e.keyCode == 13
|
||||
|
|
Loading…
Reference in a new issue