|
|
@ -8,6 +8,7 @@ import {
|
|
|
|
XIcon,
|
|
|
|
XIcon,
|
|
|
|
} from '@heroicons/react/solid';
|
|
|
|
} from '@heroicons/react/solid';
|
|
|
|
import axios from 'axios';
|
|
|
|
import axios from 'axios';
|
|
|
|
|
|
|
|
import Link from 'next/link';
|
|
|
|
import React, { useState } from 'react';
|
|
|
|
import React, { useState } from 'react';
|
|
|
|
import { defineMessages, useIntl } from 'react-intl';
|
|
|
|
import { defineMessages, useIntl } from 'react-intl';
|
|
|
|
import { MediaRequestStatus } from '../../../server/constants/media';
|
|
|
|
import { MediaRequestStatus } from '../../../server/constants/media';
|
|
|
@ -80,14 +81,22 @@ const RequestBlock: React.FC<RequestBlockProps> = ({ request, onUpdate }) => {
|
|
|
|
<div className="flex mb-1 flex-nowrap white">
|
|
|
|
<div className="flex mb-1 flex-nowrap white">
|
|
|
|
<UserIcon className="min-w-0 flex-shrink-0 mr-1.5 h-5 w-5" />
|
|
|
|
<UserIcon className="min-w-0 flex-shrink-0 mr-1.5 h-5 w-5" />
|
|
|
|
<span className="w-40 truncate md:w-auto">
|
|
|
|
<span className="w-40 truncate md:w-auto">
|
|
|
|
|
|
|
|
<Link href={`/users/${request.requestedBy.id}`}>
|
|
|
|
|
|
|
|
<a className="text-gray-100 transition duration-300 hover:text-white hover:underline">
|
|
|
|
{request.requestedBy.displayName}
|
|
|
|
{request.requestedBy.displayName}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</Link>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{request.modifiedBy && (
|
|
|
|
{request.modifiedBy && (
|
|
|
|
<div className="flex flex-nowrap">
|
|
|
|
<div className="flex flex-nowrap">
|
|
|
|
<EyeIcon className="flex-shrink-0 mr-1.5 h-5 w-5" />
|
|
|
|
<EyeIcon className="flex-shrink-0 mr-1.5 h-5 w-5" />
|
|
|
|
<span className="w-40 truncate md:w-auto">
|
|
|
|
<span className="w-40 truncate md:w-auto">
|
|
|
|
{request.modifiedBy?.displayName}
|
|
|
|
<Link href={`/users/${request.modifiedBy.id}`}>
|
|
|
|
|
|
|
|
<a className="text-gray-100 transition duration-300 hover:text-white hover:underline">
|
|
|
|
|
|
|
|
{request.modifiedBy.displayName}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</Link>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
@ -186,7 +195,7 @@ const RequestBlock: React.FC<RequestBlockProps> = ({ request, onUpdate }) => {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
{(server || profile || rootFolder) && (
|
|
|
|
{(server || profile !== null || rootFolder) && (
|
|
|
|
<>
|
|
|
|
<>
|
|
|
|
<div className="mt-4 mb-1 text-sm">
|
|
|
|
<div className="mt-4 mb-1 text-sm">
|
|
|
|
{intl.formatMessage(messages.requestoverrides)}
|
|
|
|
{intl.formatMessage(messages.requestoverrides)}
|
|
|
|