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
|
@ -338,6 +338,8 @@ public class LibraryController : BaseApiController
|
|||
library.IncludeInRecommended = dto.IncludeInRecommended;
|
||||
library.IncludeInSearch = dto.IncludeInSearch;
|
||||
library.ManageCollections = dto.ManageCollections;
|
||||
library.ManageReadingLists = dto.ManageReadingLists;
|
||||
|
||||
|
||||
_unitOfWork.LibraryRepository.Update(library);
|
||||
|
||||
|
|
|
@ -34,6 +34,10 @@ public class LibraryDto
|
|||
/// </summary>
|
||||
public bool ManageCollections { get; set; } = true;
|
||||
/// <summary>
|
||||
/// Should this library create and manage reading lists from Metadata
|
||||
/// </summary>
|
||||
public bool ManageReadingLists { get; set; } = true;
|
||||
/// <summary>
|
||||
/// Include library series in Search
|
||||
/// </summary>
|
||||
public bool IncludeInSearch { get; set; } = true;
|
||||
|
|
|
@ -24,4 +24,5 @@ public class UpdateLibraryDto
|
|||
public bool IncludeInSearch { get; init; }
|
||||
[Required]
|
||||
public bool ManageCollections { get; init; }
|
||||
public bool ManageReadingLists { get; init; }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue