Added IMS token changes.

This commit is contained in:
Patrick Fic
2022-05-11 16:31:09 -07:00
parent bbf908e5e1
commit 55144bd621
12 changed files with 65 additions and 17 deletions

View File

@@ -39,11 +39,15 @@ export function JobsDocumentsLocalGalleryReassign({
setLoading(true);
const selectedDocuments = allMedia[jobid].filter((m) => m.isSelected);
await cleanAxios.post(`${bodyshop.localmediaserverhttp}/jobs/move`, {
from_jobid: jobid,
jobid: newJobid,
files: selectedDocuments.map((f) => f.filename),
});
await cleanAxios.post(
`${bodyshop.localmediaserverhttp}/jobs/move`,
{
from_jobid: jobid,
jobid: newJobid,
files: selectedDocuments.map((f) => f.filename),
},
{ headers: { ims_token: bodyshop.localmediatoken } }
);
getJobMedia(jobid);
setVisible(false);