mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add setting saving logic.
This commit is contained in:
parent
4d33b11ce5
commit
32d59b6212
1 changed files with 7 additions and 1 deletions
|
@ -1,17 +1,23 @@
|
|||
define [
|
||||
"base"
|
||||
], (App) ->
|
||||
App.controller "FeatureOnboardingController", ($scope, $modal, event_tracking) ->
|
||||
App.controller "FeatureOnboardingController", ($scope, settings) ->
|
||||
$scope.isFeatureSettingDefined = window.userSettings.syntaxValidation?;
|
||||
|
||||
$scope.innerStep = 1
|
||||
|
||||
$scope.turnCodeCheckOn = () ->
|
||||
settings.saveProjectSettings({ syntaxValidation: true })
|
||||
navToInnerStep2()
|
||||
|
||||
$scope.turnCodeCheckOn = () ->
|
||||
settings.saveProjectSettings({ syntaxValidation: false })
|
||||
navToInnerStep2()
|
||||
|
||||
$scope.dismiss = () ->
|
||||
# TODO Toggle logic.
|
||||
$scope.isFeatureSettingDefined = false
|
||||
|
||||
navToInnerStep2 = () ->
|
||||
$scope.innerStep = 2
|
||||
$scope.ui.leftMenuShown = true
|
||||
|
|
Loading…
Reference in a new issue