Library Settings for Reading List Creation (#1930)
* Added the code for Library Settings to allow turning off Reading List creation. * Fixed a typo
This commit is contained in:
parent
7f53eadfda
commit
4791da1447
7 changed files with 34 additions and 3 deletions
|
@ -16,5 +16,6 @@ export interface Library {
|
|||
includeInRecommended: boolean;
|
||||
includeInSearch: boolean;
|
||||
manageCollections: boolean;
|
||||
manageReadingLists: boolean;
|
||||
collapseSeriesRelationships: boolean;
|
||||
}
|
|
@ -96,12 +96,26 @@
|
|||
<div class="col-md-12 col-sm-12 pe-2 mb-2">
|
||||
<div class="mb-3 mt-1">
|
||||
<div class="form-check form-switch">
|
||||
<input type="checkbox" id="manage-collections" role="switch" formControlName="manageCollections" class="form-check-input" aria-labelledby="auto-close-label">
|
||||
<input type="checkbox" id="manage-collections" role="switch" formControlName="manageCollections" class="form-check-input">
|
||||
<label class="form-check-label" for="manage-collections">Manage Collections</label>
|
||||
</div>
|
||||
</div>
|
||||
<p class="accent">
|
||||
Should Kavita create and update Collections from SeriesGroup tags found within ComicInfo.xml files
|
||||
Should Kavita create Collections from SeriesGroup tags found within ComicInfo.xml files
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 pe-2 mb-2">
|
||||
<div class="mb-3 mt-1">
|
||||
<div class="form-check form-switch">
|
||||
<input type="checkbox" id="manage-readinglists" role="switch" formControlName="manageReadingLists" class="form-check-input">
|
||||
<label class="form-check-label" for="manage-readinglists">Manage Reading Lists</label>
|
||||
</div>
|
||||
</div>
|
||||
<p class="accent">
|
||||
Should Kavita create Reading Lists from StoryArc/StoryArcNumber and AlternativeSeries/AlternativeCount tags found within ComicInfo.xml files
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -47,6 +47,7 @@ export class LibrarySettingsModalComponent implements OnInit, OnDestroy {
|
|||
includeInRecommended: new FormControl<boolean>(true, { nonNullable: true, validators: [Validators.required] }),
|
||||
includeInSearch: new FormControl<boolean>(true, { nonNullable: true, validators: [Validators.required] }),
|
||||
manageCollections: new FormControl<boolean>(true, { nonNullable: true, validators: [Validators.required] }),
|
||||
manageReadingLists: new FormControl<boolean>(true, { nonNullable: true, validators: [Validators.required] }),
|
||||
collapseSeriesRelationships: new FormControl<boolean>(false, { nonNullable: true, validators: [Validators.required] }),
|
||||
});
|
||||
|
||||
|
@ -120,6 +121,7 @@ export class LibrarySettingsModalComponent implements OnInit, OnDestroy {
|
|||
this.libraryForm.get('includeInRecommended')?.setValue(this.library.includeInRecommended);
|
||||
this.libraryForm.get('includeInSearch')?.setValue(this.library.includeInSearch);
|
||||
this.libraryForm.get('manageCollections')?.setValue(this.library.manageCollections);
|
||||
this.libraryForm.get('manageReadingLists')?.setValue(this.library.manageReadingLists);
|
||||
this.libraryForm.get('collapseSeriesRelationships')?.setValue(this.library.collapseSeriesRelationships);
|
||||
this.selectedFolders = this.library.folders;
|
||||
this.madeChanges = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue