mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 14:50:56 +00:00
Restrict the appearance of the onboarding view.
This commit is contained in:
parent
9dd06df839
commit
4d33b11ce5
2 changed files with 13 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
.feat-onboard(
|
||||
ng-controller="FeatureOnboardingController"
|
||||
ng-class="('feat-onboard-step' + innerStep)"
|
||||
ng-if="!state.loading && !isFeatureSettingDefined"
|
||||
ng-cloak
|
||||
)
|
||||
.feat-onboard-wrapper
|
||||
|
@ -27,9 +28,15 @@
|
|||
| Missing
|
||||
span.feat-onboard-adv-title-highlight brackets
|
||||
p Lorem ipsum feature description stuff.
|
||||
div
|
||||
.feat-onboard-btn-wrapper
|
||||
.btn.btn-primary(ng-click="turnCodeCheckOn();") Yes, turn Code check on
|
||||
div
|
||||
.feat-onboard-btn-wrapper
|
||||
.btn.btn-default(ng-click="turnCodeCheckOn();") No, disable it for now
|
||||
div(ng-if="innerStep === 2;")
|
||||
p Step 2, TODO.
|
||||
p
|
||||
| Remember: you can always turn
|
||||
span.feat-onboard-description-name Code check
|
||||
em on
|
||||
| or
|
||||
em off
|
||||
|, in the settings menu.
|
|
@ -2,7 +2,9 @@ define [
|
|||
"base"
|
||||
], (App) ->
|
||||
App.controller "FeatureOnboardingController", ($scope, $modal, event_tracking) ->
|
||||
$scope.innerStep = 1;
|
||||
$scope.isFeatureSettingDefined = window.userSettings.syntaxValidation?;
|
||||
|
||||
$scope.innerStep = 1
|
||||
|
||||
$scope.turnCodeCheckOn = () ->
|
||||
navToInnerStep2()
|
||||
|
|
Loading…
Reference in a new issue