refactor: rename EnableCoverArtUpload to EnableArtworkUpload
The config flag gates all image uploads (artists, radios, playlists), not just cover art. Rename it to accurately reflect its scope across the backend config, native API permission check, Subsonic CoverArtRole, serve_index JSON key, and frontend config.
This commit is contained in:
@@ -49,7 +49,7 @@ export const ImageUploadOverlay = ({
|
||||
const fileInputRef = useRef(null)
|
||||
|
||||
const canEdit =
|
||||
config.enableCoverArtUpload || localStorage.getItem('role') === 'admin'
|
||||
config.enableArtworkUpload || localStorage.getItem('role') === 'admin'
|
||||
|
||||
const handleUploadClick = useCallback((e) => {
|
||||
e.stopPropagation()
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ const defaultConfig = {
|
||||
defaultUIVolume: 100,
|
||||
uiSearchDebounceMs: 200,
|
||||
enableUserEditing: true,
|
||||
enableCoverArtUpload: true,
|
||||
enableArtworkUpload: true,
|
||||
enableSharing: true,
|
||||
shareURL: '',
|
||||
defaultDownloadableShare: true,
|
||||
|
||||
Reference in New Issue
Block a user