updated translations for dcuments lsit on case details

This commit is contained in:
2021-10-08 08:09:49 +01:00
parent b5f3432da2
commit b233f42f31
7 changed files with 71 additions and 32 deletions
+17 -2
View File
@@ -314,7 +314,7 @@ export const getBasicDNSSearchDetails = (token, appealType, caseReference) => {
};
export const getLinkedCases = (parentIncidentid) => {
console.log(parentIncidentid);
//console.log(parentIncidentid);
var token = getSASToken();
return axios
@@ -324,7 +324,7 @@ export const getLinkedCases = (parentIncidentid) => {
" and pinswg_appealcasetype ne null and pinswg_publishtoweb eq true &$select=title, incidentid,"
)
.then((res) => {
console.log(" linked date", res.data);
//console.log(" linked date", res.data);
return res.data;
})
.catch((error) => {
@@ -663,3 +663,18 @@ export const getPortalModuelDetails = (token, appealType, caseReference) => {
console.log("thiserror", error);
});
};
export const getFileFromCRM = (docRef) => {
const weburl = "/api/proxy/documents/download/" + docRef;
console.log("proxy url", weburl);
return axios
.get(weburl, { responseType: "arraybuffer" })
.then((res) => {
console.log(res);
return res;
})
.catch((error) => {
console.log("thi serror", error);
});
};