Commit 5e00dd2d authored by Christopher Mark Fullarton's avatar Christopher Mark Fullarton
Browse files

Adds missing env property setting

parent 2672c4d9
......@@ -316,6 +316,16 @@
for="createQuizPasswordRequired">createQuizPasswordRequired</label>
</div>
</div>
<div class="mb-3">
<div class="custom-control custom-switch input-group-sm">
<input [checked]="settings.config.showInfoButtonsInFooter" class="custom-control-input"
formControlName="showInfoButtonsInFooter"
id="showInfoButtonsInFooter"
type="checkbox">
<label class="custom-control-label"
for="showInfoButtonsInFooter">showInfoButtonsInFooter</label>
</div>
</div>
</div>
</div>
<div class="d-flex justify-content-end mt-3">
......
......@@ -360,17 +360,14 @@ export class RootComponent implements OnInit, AfterViewInit {
try {
this.storageService.stateNotifier.pipe(filter(val => val === DbState.Initialized), take(1), takeUntil(this._destroy)).subscribe(() => {
const quizNames: Array<string> = JSON.parse(localStorage.getItem('hashtags'));
new Promise(resolve => {
new Promise<void>(resolve => {
if (!Array.isArray(quizNames)) {
resolve();
return;
return resolve();
}
forkJoin(quizNames.map(quizName => {
return forkJoin(quizNames.map(quizName => {
const quiz = JSON.parse(localStorage.getItem(quizName));
return this.quizService.saveParsedQuiz(quiz).pipe(tap(() => localStorage.removeItem(quizName)));
})).subscribe(() => {
resolve();
});
})).toPromise();
}).then(() => {
Object.values(DeprecatedKeys).forEach(deprecatedKey => {
localStorage.removeItem(deprecatedKey);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment