You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
152 lines
3.6 KiB
152 lines
3.6 KiB
import PropTypes from 'prop-types';
|
|
import React from 'react';
|
|
import MenuContent from 'Components/Menu/MenuContent';
|
|
import SortMenu from 'Components/Menu/SortMenu';
|
|
import SortMenuItem from 'Components/Menu/SortMenuItem';
|
|
import { align, sortDirections } from 'Helpers/Props';
|
|
|
|
function ArtistIndexSortMenu(props) {
|
|
const { sortKey, sortDirection, isDisabled, onSortSelect } = props;
|
|
|
|
return (
|
|
<SortMenu isDisabled={isDisabled} alignMenu={align.RIGHT}>
|
|
<MenuContent>
|
|
<SortMenuItem
|
|
name="status"
|
|
sortKey={sortKey}
|
|
sortDirection={sortDirection}
|
|
onPress={onSortSelect}
|
|
>
|
|
Monitored/Status
|
|
</SortMenuItem>
|
|
|
|
<SortMenuItem
|
|
name="sortName"
|
|
sortKey={sortKey}
|
|
sortDirection={sortDirection}
|
|
onPress={onSortSelect}
|
|
>
|
|
Name
|
|
</SortMenuItem>
|
|
|
|
<SortMenuItem
|
|
name="artistType"
|
|
sortKey={sortKey}
|
|
sortDirection={sortDirection}
|
|
onPress={onSortSelect}
|
|
>
|
|
Type
|
|
</SortMenuItem>
|
|
|
|
<SortMenuItem
|
|
name="qualityProfileId"
|
|
sortKey={sortKey}
|
|
sortDirection={sortDirection}
|
|
onPress={onSortSelect}
|
|
>
|
|
Quality Profile
|
|
</SortMenuItem>
|
|
|
|
<SortMenuItem
|
|
name="metadataProfileId"
|
|
sortKey={sortKey}
|
|
sortDirection={sortDirection}
|
|
onPress={onSortSelect}
|
|
>
|
|
Metadata Profile
|
|
</SortMenuItem>
|
|
|
|
<SortMenuItem
|
|
name="nextAlbum"
|
|
sortKey={sortKey}
|
|
sortDirection={sortDirection}
|
|
onPress={onSortSelect}
|
|
>
|
|
Next Album
|
|
</SortMenuItem>
|
|
|
|
<SortMenuItem
|
|
name="lastAlbum"
|
|
sortKey={sortKey}
|
|
sortDirection={sortDirection}
|
|
onPress={onSortSelect}
|
|
>
|
|
Last Album
|
|
</SortMenuItem>
|
|
|
|
<SortMenuItem
|
|
name="added"
|
|
sortKey={sortKey}
|
|
sortDirection={sortDirection}
|
|
onPress={onSortSelect}
|
|
>
|
|
Added
|
|
</SortMenuItem>
|
|
|
|
<SortMenuItem
|
|
name="albumCount"
|
|
sortKey={sortKey}
|
|
sortDirection={sortDirection}
|
|
onPress={onSortSelect}
|
|
>
|
|
Albums
|
|
</SortMenuItem>
|
|
|
|
<SortMenuItem
|
|
name="trackProgress"
|
|
sortKey={sortKey}
|
|
sortDirection={sortDirection}
|
|
onPress={onSortSelect}
|
|
>
|
|
Tracks
|
|
</SortMenuItem>
|
|
|
|
<SortMenuItem
|
|
name="trackCount"
|
|
sortKey={sortKey}
|
|
sortDirection={sortDirection}
|
|
onPress={onSortSelect}
|
|
>
|
|
Track Count
|
|
</SortMenuItem>
|
|
|
|
<SortMenuItem
|
|
name="path"
|
|
sortKey={sortKey}
|
|
sortDirection={sortDirection}
|
|
onPress={onSortSelect}
|
|
>
|
|
Path
|
|
</SortMenuItem>
|
|
|
|
<SortMenuItem
|
|
name="sizeOnDisk"
|
|
sortKey={sortKey}
|
|
sortDirection={sortDirection}
|
|
onPress={onSortSelect}
|
|
>
|
|
Size on Disk
|
|
</SortMenuItem>
|
|
|
|
<SortMenuItem
|
|
name="tags"
|
|
sortKey={sortKey}
|
|
sortDirection={sortDirection}
|
|
onPress={onSortSelect}
|
|
>
|
|
Tags
|
|
</SortMenuItem>
|
|
</MenuContent>
|
|
</SortMenu>
|
|
);
|
|
}
|
|
|
|
ArtistIndexSortMenu.propTypes = {
|
|
sortKey: PropTypes.string,
|
|
sortDirection: PropTypes.oneOf(sortDirections.all),
|
|
isDisabled: PropTypes.bool.isRequired,
|
|
onSortSelect: PropTypes.func.isRequired,
|
|
};
|
|
|
|
export default ArtistIndexSortMenu;
|