fix(ui): replace NumberInput with TextInput for read-only fields in LibraryEdit

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan
2025-07-18 21:43:52 -04:00
parent a569f6788e
commit a60bea70c9
+3 -4
View File
@@ -11,7 +11,6 @@ import {
useMutation, useMutation,
useNotify, useNotify,
useRedirect, useRedirect,
NumberInput,
Toolbar, Toolbar,
} from 'react-admin' } from 'react-admin'
import { Typography, Box } from '@material-ui/core' import { Typography, Box } from '@material-ui/core'
@@ -128,7 +127,7 @@ const LibraryEdit = (props) => {
<Box display="flex"> <Box display="flex">
<Box flex={1} mr="0.5em"> <Box flex={1} mr="0.5em">
<NumberInput <TextInput
InputProps={{ readOnly: true }} InputProps={{ readOnly: true }}
resource={'library'} resource={'library'}
source={'totalSongs'} source={'totalSongs'}
@@ -138,7 +137,7 @@ const LibraryEdit = (props) => {
/> />
</Box> </Box>
<Box flex={1} ml="0.5em"> <Box flex={1} ml="0.5em">
<NumberInput <TextInput
InputProps={{ readOnly: true }} InputProps={{ readOnly: true }}
resource={'library'} resource={'library'}
source={'totalAlbums'} source={'totalAlbums'}
@@ -153,7 +152,7 @@ const LibraryEdit = (props) => {
<Box display="flex"> <Box display="flex">
<Box flex={1} mr="0.5em"> <Box flex={1} mr="0.5em">
<NumberInput <TextInput
InputProps={{ readOnly: true }} InputProps={{ readOnly: true }}
resource={'library'} resource={'library'}
source={'totalArtists'} source={'totalArtists'}