Disable creating collections/reading lists by default for a library. It usually results in people deleting and coming to support.

This commit is contained in:
Joseph Milazzo 2025-05-11 12:45:22 -05:00
parent 322b2953bb
commit 2314f474e6

View file

@ -103,8 +103,8 @@ export class LibrarySettingsModalComponent implements OnInit {
includeInDashboard: new FormControl<boolean>(true, { nonNullable: true, validators: [Validators.required] }), includeInDashboard: new FormControl<boolean>(true, { nonNullable: true, validators: [Validators.required] }),
includeInRecommended: new FormControl<boolean>(true, { nonNullable: true, validators: [Validators.required] }), includeInRecommended: new FormControl<boolean>(true, { nonNullable: true, validators: [Validators.required] }),
includeInSearch: 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] }), manageCollections: new FormControl<boolean>(false, { nonNullable: true, validators: [Validators.required] }),
manageReadingLists: new FormControl<boolean>(true, { nonNullable: true, validators: [Validators.required] }), manageReadingLists: new FormControl<boolean>(false, { nonNullable: true, validators: [Validators.required] }),
allowScrobbling: new FormControl<boolean>(true, { nonNullable: true, validators: [Validators.required] }), allowScrobbling: new FormControl<boolean>(true, { nonNullable: true, validators: [Validators.required] }),
allowMetadataMatching: new FormControl<boolean>(true, { nonNullable: true, validators: [Validators.required] }), allowMetadataMatching: new FormControl<boolean>(true, { nonNullable: true, validators: [Validators.required] }),
collapseSeriesRelationships: new FormControl<boolean>(false, { nonNullable: true, validators: [Validators.required] }), collapseSeriesRelationships: new FormControl<boolean>(false, { nonNullable: true, validators: [Validators.required] }),
@ -232,6 +232,7 @@ export class LibrarySettingsModalComponent implements OnInit {
this.libraryForm.get('allowMetadataMatching')?.disable(); this.libraryForm.get('allowMetadataMatching')?.disable();
} }
this.cdRef.markForCheck(); this.cdRef.markForCheck();
}), }),
takeUntilDestroyed(this.destroyRef) takeUntilDestroyed(this.destroyRef)