feat: sort quality profiles ASC in request and service configuration (#1805)
This commit is contained in:
@@ -367,7 +367,14 @@ const AdvancedRequester = ({
|
|||||||
)}
|
)}
|
||||||
{!isValidating &&
|
{!isValidating &&
|
||||||
serverData &&
|
serverData &&
|
||||||
serverData.profiles.map((profile) => (
|
serverData.profiles
|
||||||
|
.toSorted((a, b) =>
|
||||||
|
a.name.localeCompare(b.name, intl.locale, {
|
||||||
|
numeric: true,
|
||||||
|
sensitivity: 'base',
|
||||||
|
})
|
||||||
|
)
|
||||||
|
.map((profile) => (
|
||||||
<option
|
<option
|
||||||
key={`profile-list${profile.id}`}
|
key={`profile-list${profile.id}`}
|
||||||
value={profile.id}
|
value={profile.id}
|
||||||
|
|||||||
@@ -526,7 +526,14 @@ const RadarrModal = ({ onClose, radarr, onSave }: RadarrModalProps) => {
|
|||||||
)}
|
)}
|
||||||
</option>
|
</option>
|
||||||
{testResponse.profiles.length > 0 &&
|
{testResponse.profiles.length > 0 &&
|
||||||
testResponse.profiles.map((profile) => (
|
testResponse.profiles
|
||||||
|
.toSorted((a, b) =>
|
||||||
|
a.name.localeCompare(b.name, intl.locale, {
|
||||||
|
numeric: true,
|
||||||
|
sensitivity: 'base',
|
||||||
|
})
|
||||||
|
)
|
||||||
|
.map((profile) => (
|
||||||
<option
|
<option
|
||||||
key={`loaded-profile-${profile.id}`}
|
key={`loaded-profile-${profile.id}`}
|
||||||
value={profile.id}
|
value={profile.id}
|
||||||
|
|||||||
@@ -583,7 +583,14 @@ const SonarrModal = ({ onClose, sonarr, onSave }: SonarrModalProps) => {
|
|||||||
)}
|
)}
|
||||||
</option>
|
</option>
|
||||||
{testResponse.profiles.length > 0 &&
|
{testResponse.profiles.length > 0 &&
|
||||||
testResponse.profiles.map((profile) => (
|
testResponse.profiles
|
||||||
|
.toSorted((a, b) =>
|
||||||
|
a.name.localeCompare(b.name, intl.locale, {
|
||||||
|
numeric: true,
|
||||||
|
sensitivity: 'base',
|
||||||
|
})
|
||||||
|
)
|
||||||
|
.map((profile) => (
|
||||||
<option
|
<option
|
||||||
key={`loaded-profile-${profile.id}`}
|
key={`loaded-profile-${profile.id}`}
|
||||||
value={profile.id}
|
value={profile.id}
|
||||||
@@ -795,9 +802,16 @@ const SonarrModal = ({ onClose, sonarr, onSave }: SonarrModalProps) => {
|
|||||||
)}
|
)}
|
||||||
</option>
|
</option>
|
||||||
{testResponse.profiles.length > 0 &&
|
{testResponse.profiles.length > 0 &&
|
||||||
testResponse.profiles.map((profile) => (
|
testResponse.profiles
|
||||||
|
.toSorted((a, b) =>
|
||||||
|
a.name.localeCompare(b.name, intl.locale, {
|
||||||
|
numeric: true,
|
||||||
|
sensitivity: 'base',
|
||||||
|
})
|
||||||
|
)
|
||||||
|
.map((profile) => (
|
||||||
<option
|
<option
|
||||||
key={`loaded-profile-${profile.id}`}
|
key={`loaded-profile-anime-${profile.id}`}
|
||||||
value={profile.id}
|
value={profile.id}
|
||||||
>
|
>
|
||||||
{profile.name}
|
{profile.name}
|
||||||
|
|||||||
Reference in New Issue
Block a user