updated watch case filter on dashboard
This commit is contained in:
@@ -168,6 +168,7 @@ const MyPortal = (props) => {
|
|||||||
watchedCases={props.watchedCases}
|
watchedCases={props.watchedCases}
|
||||||
isLPA={isLPA}
|
isLPA={isLPA}
|
||||||
myReps={false}
|
myReps={false}
|
||||||
|
accountDetails={props.accountDetails}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{props.myRepresentations.hasOwnProperty(
|
{props.myRepresentations.hasOwnProperty(
|
||||||
|
|||||||
@@ -114,13 +114,32 @@ const TopThree = (props) => {
|
|||||||
deleteWatchedCases(caseID)
|
deleteWatchedCases(caseID)
|
||||||
.then((data) => data)
|
.then((data) => data)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
getWatchedCasesProxy(cookies.pinsUser).then((data) => {
|
getWatchedCasesProxy(
|
||||||
setWatchedCases(data),
|
props.accountDetails.loggedinUserId
|
||||||
getDetailsProxy(data, "myWatchedCases").then(
|
).then((data) => {
|
||||||
(data) => {
|
let showWatchedCases = (submittedArr) => {
|
||||||
setWatchedCasesDetails(data);
|
const required = submittedArr.value.filter((el) => {
|
||||||
}
|
return (
|
||||||
);
|
el.pinswg_representationsubmitted == null
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
let newObj = {};
|
||||||
|
return Object.assign(newObj, {
|
||||||
|
"@odata.count": required.length,
|
||||||
|
"value": required,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
let filteredWatchedCases = showWatchedCases(data);
|
||||||
|
|
||||||
|
setWatchedCases(filteredWatchedCases),
|
||||||
|
getDetailsProxy(
|
||||||
|
filteredWatchedCases,
|
||||||
|
"myWatchedCases"
|
||||||
|
).then((data) => {
|
||||||
|
setWatchedCasesDetails(data);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ const WatchedCases = (props) => {
|
|||||||
currentView={props.currentView}
|
currentView={props.currentView}
|
||||||
myReps={props.myReps}
|
myReps={props.myReps}
|
||||||
props={props}
|
props={props}
|
||||||
|
accountDetails={props.accountDetails}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user