mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
23 lines
622 B
CoffeeScript
23 lines
622 B
CoffeeScript
define [
|
|
"base"
|
|
], (App) ->
|
|
App.controller "FeatureOnboardingController", ($scope, settings) ->
|
|
$scope.innerStep = 1
|
|
|
|
$scope.turnCodeCheckOn = () ->
|
|
settings.saveSettings({ syntaxValidation: true })
|
|
$scope.settings.syntaxValidation = true
|
|
navToInnerStep2()
|
|
|
|
$scope.turnCodeCheckOff = () ->
|
|
settings.saveSettings({ syntaxValidation: false })
|
|
$scope.settings.syntaxValidation = false
|
|
navToInnerStep2()
|
|
|
|
$scope.dismiss = () ->
|
|
$scope.ui.leftMenuShown = false
|
|
$scope.ui.showCodeCheckerOnboarding = false
|
|
|
|
navToInnerStep2 = () ->
|
|
$scope.innerStep = 2
|
|
$scope.ui.leftMenuShown = true
|