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