fix(ui): replace NumberInput with TextInput for read-only fields in LibraryEdit
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -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'}
|
||||||
|
|||||||
Reference in New Issue
Block a user