copied watchcase to search state so doesnt lose details

This commit is contained in:
2024-05-29 13:36:05 +01:00
parent 371ebceb49
commit 0878fd1575
4 changed files with 57 additions and 2 deletions
+36 -1
View File
@@ -17,6 +17,7 @@ import {
import {
setCurrentLinkedCases,
setCurrentReference,
setCurrentView,
} from "../../store/currentView/action";
import {
@@ -539,7 +540,38 @@ const CaseSummary = (props) => {
.pinswg_watchlistid,
"watchedCases"
);
),
setCurrentView({
"viewName":
"Watched Cases",
"viewKey":
"watchedCases",
});
setCurrentReference({
"ticketnumber":
props
.currentView
.caseReference
.currentReference,
"currentReference":
props
.currentView
.caseReference
.currentReference,
"currentType":
"searchResultsObj",
"incidentid":
props
.currentView
.caseReference
.incidentid,
"appealType":
props
.currentView
.caseReference
.appealType,
"showMap": showMap,
});
}}
title={t(
"case:stop-watching-case-link"
@@ -1131,6 +1163,9 @@ const mapDispatchToProps = (dispatch) => {
setWatchedCasesDetails: (watchedCasesDetails) => {
dispatch(setWatchedCasesDetails(watchedCasesDetails));
},
setCurrentView: (currentView) => {
dispatch(setCurrentView(currentView));
},
};
};