Can Unlock challenge up to a certain level

This commit is contained in:
nemunaire 2022-06-08 16:37:25 +02:00
commit 0a8d0dad30
5 changed files with 22 additions and 1 deletions

View file

@ -283,6 +283,7 @@ func deleteNextSettings(c *gin.Context) {
func ApplySettings(config *settings.Settings) {
fic.PartialValidation = config.PartialValidation
fic.UnlockedChallengeDepth = config.UnlockedChallengeDepth
fic.UnlockedChallengeUpTo = config.UnlockedChallengeUpTo
fic.DisplayAllFlags = config.DisplayAllFlags
fic.DisplayMCQBadCount = config.DisplayMCQBadCount
fic.FirstBlood = config.FirstBlood

View file

@ -189,6 +189,13 @@
</label>
</div>
<div class="form-group row pr-1">
<label class="custom-control custom-checkbox col-5" ng-class="{'text-primary': !config.unlockedChallengeUpTo != !dist_config.unlockedChallengeUpTo}">
Débloquer jusqu'au niveau :
</label>
<input type="number" class="form-control form-control-sm col-7" ng-model="config.unlockedChallengeUpTo" min="1" integer ng-class="{'border-primary': config.unlockedChallengeUpTo != dist_config.unlockedChallengeUpTo}">
</div>
<div class="form-check">
<label class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox" ng-model="config.partialValidation">