Merged PR 2468: tweaked button link to use caseref
tweaked button link to use caseref Related work items: #24199
This commit is contained in:
@@ -4,9 +4,12 @@ import Link from "next/link";
|
|||||||
import { bytesToSize } from "../../../components/utils";
|
import { bytesToSize } from "../../../components/utils";
|
||||||
import {
|
import {
|
||||||
deleteMyRepresentationsFromBlob,
|
deleteMyRepresentationsFromBlob,
|
||||||
deleteAwaitingSubmissionsFromBlob
|
deleteAwaitingSubmissionsFromBlob,
|
||||||
|
getRepsFromBlobProxy
|
||||||
} from "../../../actions/services/documentService";
|
} from "../../../actions/services/documentService";
|
||||||
import { sendRepCompleteMessage } from "../../../actions/services/portalService";
|
import { sendRepCompleteMessage } from "../../../actions/services/portalService";
|
||||||
|
import { parseCookies } from "nookies";
|
||||||
|
import { consoleLogger } from "../../../actions/core/logger";
|
||||||
|
|
||||||
import { formatBlobDates } from "../utils/adminHelper";
|
import { formatBlobDates } from "../utils/adminHelper";
|
||||||
|
|
||||||
@@ -21,6 +24,33 @@ export default function StorageTab({ data, repCompleteCount }) {
|
|||||||
setShowTmpFile(newState);
|
setShowTmpFile(newState);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const deleteRepItem = (containerID, caseID, repfile) => {
|
||||||
|
let cookies = parseCookies();
|
||||||
|
//console.log("sssss", containerID, caseID, repfile);
|
||||||
|
|
||||||
|
deleteMyRepresentationsFromBlob(containerID, caseID, repfile)
|
||||||
|
.then((data) => {
|
||||||
|
return data;
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
getRepsFromBlobProxy(containerID)
|
||||||
|
.then((data) => {
|
||||||
|
setMyRepresentations(data);
|
||||||
|
setMyRepresentationsDetails(data);
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
consoleLogger(error);
|
||||||
|
return null;
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
setCurrentView({
|
||||||
|
"viewName": "My Representations",
|
||||||
|
"viewKey": "myRepresentations"
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h1>Storage Account Contents</h1>
|
<h1>Storage Account Contents</h1>
|
||||||
|
|||||||
@@ -922,7 +922,7 @@ const CaseSummary = (props) => {
|
|||||||
? casesObj.pinswg_title
|
? casesObj.pinswg_title
|
||||||
: currentType ==
|
: currentType ==
|
||||||
"directResultsObj"
|
"directResultsObj"
|
||||||
? detailsObj.pinswg_name
|
? detailsObj.ticketnumber
|
||||||
: casesObj.reference
|
: casesObj.reference
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user