mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
remove indeterminate state from album disc groups
This commit is contained in:
@@ -507,7 +507,6 @@ const AlbumDetailSongsTable = ({ songs }: AlbumDetailSongsTableProps) => {
|
|||||||
}).length;
|
}).length;
|
||||||
|
|
||||||
const isAllSelected = selectedCount === groupItems.length;
|
const isAllSelected = selectedCount === groupItems.length;
|
||||||
const isSomeSelected = selectedCount > 0 && selectedCount < groupItems.length;
|
|
||||||
|
|
||||||
const handleCheckboxChange = () => {
|
const handleCheckboxChange = () => {
|
||||||
const selectableItems = groupItems;
|
const selectableItems = groupItems;
|
||||||
@@ -544,7 +543,6 @@ const AlbumDetailSongsTable = ({ songs }: AlbumDetailSongsTableProps) => {
|
|||||||
<Checkbox
|
<Checkbox
|
||||||
checked={isAllSelected}
|
checked={isAllSelected}
|
||||||
id={`disc-${discGroup.discNumber}`}
|
id={`disc-${discGroup.discNumber}`}
|
||||||
indeterminate={isSomeSelected}
|
|
||||||
label={
|
label={
|
||||||
<Text component="label" size="sm" truncate>
|
<Text component="label" size="sm" truncate>
|
||||||
{t('common.disc', { postProcess: 'sentenceCase' })}{' '}
|
{t('common.disc', { postProcess: 'sentenceCase' })}{' '}
|
||||||
|
|||||||
Reference in New Issue
Block a user