diff --git a/API/Controllers/LibraryController.cs b/API/Controllers/LibraryController.cs index 316431c6d..acb275fa3 100644 --- a/API/Controllers/LibraryController.cs +++ b/API/Controllers/LibraryController.cs @@ -334,7 +334,7 @@ public class LibraryController : BaseApiController library.IncludeInDashboard = dto.IncludeInDashboard; library.IncludeInRecommended = dto.IncludeInRecommended; library.IncludeInSearch = dto.IncludeInSearch; - library.ManageCollections = dto.CreateCollections; + library.ManageCollections = dto.ManageCollections; _unitOfWork.LibraryRepository.Update(library); diff --git a/API/DTOs/UpdateLibraryDto.cs b/API/DTOs/UpdateLibraryDto.cs index 6a9b7c72d..977616497 100644 --- a/API/DTOs/UpdateLibraryDto.cs +++ b/API/DTOs/UpdateLibraryDto.cs @@ -23,6 +23,6 @@ public class UpdateLibraryDto [Required] public bool IncludeInSearch { get; init; } [Required] - public bool CreateCollections { get; init; } + public bool ManageCollections { get; init; } } diff --git a/UI/Web/src/app/_models/library.ts b/UI/Web/src/app/_models/library.ts index 059e505c7..665911be3 100644 --- a/UI/Web/src/app/_models/library.ts +++ b/UI/Web/src/app/_models/library.ts @@ -15,5 +15,5 @@ export interface Library { includeInDashboard: boolean; includeInRecommended: boolean; includeInSearch: boolean; - createCollections: boolean; + manageCollections: boolean; } \ No newline at end of file diff --git a/UI/Web/src/app/sidenav/_modals/library-settings-modal/library-settings-modal.component.html b/UI/Web/src/app/sidenav/_modals/library-settings-modal/library-settings-modal.component.html index 029164789..79adc4623 100644 --- a/UI/Web/src/app/sidenav/_modals/library-settings-modal/library-settings-modal.component.html +++ b/UI/Web/src/app/sidenav/_modals/library-settings-modal/library-settings-modal.component.html @@ -96,7 +96,7 @@
- +
diff --git a/UI/Web/src/app/sidenav/_modals/library-settings-modal/library-settings-modal.component.ts b/UI/Web/src/app/sidenav/_modals/library-settings-modal/library-settings-modal.component.ts index c74a07a18..24ddb7fad 100644 --- a/UI/Web/src/app/sidenav/_modals/library-settings-modal/library-settings-modal.component.ts +++ b/UI/Web/src/app/sidenav/_modals/library-settings-modal/library-settings-modal.component.ts @@ -46,7 +46,7 @@ export class LibrarySettingsModalComponent implements OnInit, OnDestroy { includeInDashboard: new FormControl(true, { nonNullable: true, validators: [Validators.required] }), includeInRecommended: new FormControl(true, { nonNullable: true, validators: [Validators.required] }), includeInSearch: new FormControl(true, { nonNullable: true, validators: [Validators.required] }), - createCollections: new FormControl(true, { nonNullable: true, validators: [Validators.required] }), + manageCollections: new FormControl(true, { nonNullable: true, validators: [Validators.required] }), }); selectedFolders: string[] = []; @@ -118,7 +118,7 @@ export class LibrarySettingsModalComponent implements OnInit, OnDestroy { this.libraryForm.get('includeInDashboard')?.setValue(this.library.includeInDashboard); this.libraryForm.get('includeInRecommended')?.setValue(this.library.includeInRecommended); this.libraryForm.get('includeInSearch')?.setValue(this.library.includeInSearch); - this.libraryForm.get('createCollections')?.setValue(this.library.createCollections); + this.libraryForm.get('manageCollections')?.setValue(this.library.manageCollections); this.selectedFolders = this.library.folders; this.madeChanges = false; this.cdRef.markForCheck(); diff --git a/openapi.json b/openapi.json index b9ba8409f..06aec3b21 100644 --- a/openapi.json +++ b/openapi.json @@ -14070,13 +14070,13 @@ }, "UpdateLibraryDto": { "required": [ - "createCollections", "folders", "folderWatching", "id", "includeInDashboard", "includeInRecommended", "includeInSearch", + "manageCollections", "name", "type" ], @@ -14111,7 +14111,7 @@ "includeInSearch": { "type": "boolean" }, - "createCollections": { + "manageCollections": { "type": "boolean" } },