|
|
|
@ -26,6 +26,7 @@ const messages = defineMessages({
|
|
|
|
|
server: 'Destination Server',
|
|
|
|
|
profilechanged: 'Quality Profile',
|
|
|
|
|
rootfolder: 'Root Folder',
|
|
|
|
|
languageprofile: 'Language Profile',
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
interface RequestBlockProps {
|
|
|
|
@ -38,7 +39,8 @@ const RequestBlock: React.FC<RequestBlockProps> = ({ request, onUpdate }) => {
|
|
|
|
|
const intl = useIntl();
|
|
|
|
|
const [isUpdating, setIsUpdating] = useState(false);
|
|
|
|
|
const [showEditModal, setShowEditModal] = useState(false);
|
|
|
|
|
const { profile, rootFolder, server } = useRequestOverride(request);
|
|
|
|
|
const { profile, rootFolder, server, languageProfile } =
|
|
|
|
|
useRequestOverride(request);
|
|
|
|
|
|
|
|
|
|
const updateRequest = async (type: 'approve' | 'decline'): Promise<void> => {
|
|
|
|
|
setIsUpdating(true);
|
|
|
|
@ -209,7 +211,7 @@ const RequestBlock: React.FC<RequestBlockProps> = ({ request, onUpdate }) => {
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{(server || profile !== null || rootFolder) && (
|
|
|
|
|
{(server || profile || rootFolder || languageProfile) && (
|
|
|
|
|
<>
|
|
|
|
|
<div className="mt-4 mb-1 text-sm">
|
|
|
|
|
{intl.formatMessage(messages.requestoverrides)}
|
|
|
|
@ -223,12 +225,12 @@ const RequestBlock: React.FC<RequestBlockProps> = ({ request, onUpdate }) => {
|
|
|
|
|
<span>{server}</span>
|
|
|
|
|
</li>
|
|
|
|
|
)}
|
|
|
|
|
{profile !== null && (
|
|
|
|
|
{profile && (
|
|
|
|
|
<li className="flex justify-between px-1 py-2">
|
|
|
|
|
<span className="font-bold">
|
|
|
|
|
{intl.formatMessage(messages.profilechanged)}
|
|
|
|
|
</span>
|
|
|
|
|
<span>ID {profile}</span>
|
|
|
|
|
<span>{profile}</span>
|
|
|
|
|
</li>
|
|
|
|
|
)}
|
|
|
|
|
{rootFolder && (
|
|
|
|
@ -239,6 +241,14 @@ const RequestBlock: React.FC<RequestBlockProps> = ({ request, onUpdate }) => {
|
|
|
|
|
<span>{rootFolder}</span>
|
|
|
|
|
</li>
|
|
|
|
|
)}
|
|
|
|
|
{languageProfile && (
|
|
|
|
|
<li className="flex justify-between px-1 py-2">
|
|
|
|
|
<span className="mr-2 font-bold">
|
|
|
|
|
{intl.formatMessage(messages.languageprofile)}
|
|
|
|
|
</span>
|
|
|
|
|
<span>{languageProfile}</span>
|
|
|
|
|
</li>
|
|
|
|
|
)}
|
|
|
|
|
</ul>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|