Rename stuff to refer to the new onboarding feature.

This commit is contained in:
Paulo Reis 2017-02-08 17:19:13 +00:00
parent 6d35703963
commit 1ef5cc97fc
2 changed files with 11 additions and 3 deletions

View file

@ -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

View file

@ -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