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,
useNotify,
useRedirect,
NumberInput,
Toolbar,
} from 'react-admin'
import { Typography, Box } from '@material-ui/core'
@@ -128,7 +127,7 @@ const LibraryEdit = (props) => {
<Box display="flex">
<Box flex={1} mr="0.5em">
<NumberInput
<TextInput
InputProps={{ readOnly: true }}
resource={'library'}
source={'totalSongs'}
@@ -138,7 +137,7 @@ const LibraryEdit = (props) => {
/>
</Box>
<Box flex={1} ml="0.5em">
<NumberInput
<TextInput
InputProps={{ readOnly: true }}
resource={'library'}
source={'totalAlbums'}
@@ -153,7 +152,7 @@ const LibraryEdit = (props) => {
<Box display="flex">
<Box flex={1} mr="0.5em">
<NumberInput
<TextInput
InputProps={{ readOnly: true }}
resource={'library'}
source={'totalArtists'}