mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-07 21:42:16 -07:00
parent
a794ed8860
commit
ad6e651090
5 changed files with 12 additions and 3 deletions
|
@ -15,17 +15,20 @@ function createMapStateToProps() {
|
|||
|
||||
return {
|
||||
key: albumRelease.id,
|
||||
value: `${albumRelease.mediaCount} med, ${albumRelease.trackCount} tracks` +
|
||||
value: `${albumRelease.title}` +
|
||||
`${albumRelease.disambiguation ? ' (' : ''}${titleCase(albumRelease.disambiguation)}${albumRelease.disambiguation ? ')' : ''}` +
|
||||
`, ${albumRelease.mediaCount} med, ${albumRelease.trackCount} tracks` +
|
||||
`${albumRelease.country.length > 0 ? ', ' : ''}${albumRelease.country}` +
|
||||
`${albumRelease.disambiguation ? ', ' : ''}${titleCase(albumRelease.disambiguation)}` +
|
||||
`${albumRelease.format ? ', [' : ''}${albumRelease.format}${albumRelease.format ? ']' : ''}`
|
||||
};
|
||||
});
|
||||
|
||||
const sortedValues = _.orderBy(values, ['value']);
|
||||
|
||||
const value = selectedRelease.value.id;
|
||||
|
||||
return {
|
||||
values,
|
||||
values: sortedValues,
|
||||
value
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue