feat: filter by only requested media items in request list

feat/request-list-requested-filter
Brandon 2 years ago
parent d954328911
commit 92c7ac3906

@ -4900,6 +4900,7 @@ paths:
approved,
available,
pending,
requested,
processing,
unavailable,
failed,

@ -70,6 +70,9 @@ requestRoutes.get<Record<string, unknown>, RequestResultsResponse>(
case 'available':
mediaStatusFilter = [MediaStatus.AVAILABLE];
break;
case 'requested':
mediaStatusFilter = [MediaStatus.PROCESSING];
break;
case 'processing':
case 'unavailable':
mediaStatusFilter = [

@ -31,6 +31,7 @@ enum Filter {
PENDING = 'pending',
APPROVED = 'approved',
PROCESSING = 'processing',
REQUESTED = 'requested',
AVAILABLE = 'available',
UNAVAILABLE = 'unavailable',
FAILED = 'failed',
@ -165,6 +166,9 @@ const RequestList = () => {
<option value="approved">
{intl.formatMessage(globalMessages.approved)}
</option>
<option value="requested">
{intl.formatMessage(globalMessages.requested)}
</option>
<option value="processing">
{intl.formatMessage(globalMessages.processing)}
</option>

Loading…
Cancel
Save