rioght mouse click on view all

This commit is contained in:
2025-05-22 14:15:42 +01:00
parent 3877323b9b
commit 29abd0efd0
12 changed files with 136 additions and 124 deletions
+17 -3
View File
@@ -104,13 +104,18 @@ const CaseHome = (props) => {
props.awaitingSubmission.awaitingSubmission
}
caseReference={
props.currentView.caseReference.currentReference
props.searchResultsObj.searchResultsObj.value[0]
.ticketnumber
}
currentType={props.currentType}
appealTypeID={
props.currentView.caseReference.appealType
props.searchResultsObj.searchResultsObj.value[0]
.pinswg_appealcasetype
}
incidentid={
props.searchResultsObj.searchResultsObj.value[0]
.incidentid
}
incidentid={props.currentView.caseReference.incidentid}
representationsObj={
props.searchResultsObj.representationsObj
}
@@ -182,6 +187,15 @@ export const getServerSideProps = wrapper.getServerSideProps(
? query.ticketnumber
: query.ticketnumber.split("-").join(" ");
const pattern = /CAS-\d{5}-[A-Z0-9]{6}/;
const match = query.ticketnumber.match(pattern);
if (match) {
console.log("Match found!", match[0]);
} else {
console.log("No match.");
}
const searchResultsObj = await getBasicSearch(developmentQuery);
const searchDetailsObj = await getSearchDetails(searchResultsObj);