2016-10-20 11:39:43 -04:00
|
|
|
define [
|
|
|
|
"base"
|
|
|
|
], (App) ->
|
2016-10-24 07:20:08 -04:00
|
|
|
App.controller "FeatureOnboardingController", ($scope, settings) ->
|
2016-10-21 10:00:52 -04:00
|
|
|
$scope.isFeatureSettingDefined = window.userSettings.syntaxValidation?;
|
|
|
|
|
|
|
|
$scope.innerStep = 1
|
2016-10-20 11:39:43 -04:00
|
|
|
|
|
|
|
$scope.turnCodeCheckOn = () ->
|
2016-10-25 10:01:30 -04:00
|
|
|
settings.saveSettings({ syntaxValidation: true })
|
2016-10-21 07:02:53 -04:00
|
|
|
navToInnerStep2()
|
2016-10-20 11:39:43 -04:00
|
|
|
|
|
|
|
$scope.turnCodeCheckOn = () ->
|
2016-10-25 10:01:30 -04:00
|
|
|
settings.saveSettings({ syntaxValidation: false })
|
2016-10-21 07:02:53 -04:00
|
|
|
navToInnerStep2()
|
2016-10-20 11:39:43 -04:00
|
|
|
|
2016-10-24 07:20:08 -04:00
|
|
|
$scope.dismiss = () ->
|
2016-10-26 06:12:34 -04:00
|
|
|
$scope.isFeatureSettingDefined = true
|
2016-10-24 07:20:08 -04:00
|
|
|
|
2016-10-21 07:02:53 -04:00
|
|
|
navToInnerStep2 = () ->
|
|
|
|
$scope.innerStep = 2
|
2016-10-20 11:39:43 -04:00
|
|
|
$scope.ui.leftMenuShown = true
|