diff --git a/.env.local b/.env.local
index c221e6b4..c66bb39a 100644
--- a/.env.local
+++ b/.env.local
@@ -5,11 +5,11 @@ GRANT_TYPE = "client_credentials"
HASHKEY = 028ffbae928d7191c0017f298260995f901d78eabde1436c0af0423459cc3715832136d84f68818d3a96399467b52143e273d4f3bf4ae190848891535421cd6c
//Dev oauth ESNR
-//CLIENT_ID = 9b834097-03d7-409b-b038-ecfec31a394a
-//CLIENT_SECRET = AU88Q~NBOVOXqwb4mBx9y.NMIZ9s1o7boqZoKcSE
-//RELAY_ROOT = https://dev-pedw-ns.servicebus.windows.net/dev-pedw-hc/
-//RELAYURI = "dev-pedw-ns.servicebus.windows.net"
-//RELAYPATH = "dev-pedw-hc"
+CLIENT_ID = 9b834097-03d7-409b-b038-ecfec31a394a
+CLIENT_SECRET = AU88Q~NBOVOXqwb4mBx9y.NMIZ9s1o7boqZoKcSE
+RELAY_ROOT = https://dev-pedw-ns.servicebus.windows.net/dev-pedw-hc/
+RELAYURI = "dev-pedw-ns.servicebus.windows.net"
+RELAYPATH = "dev-pedw-hc"
//Test Oauth ESNR
@@ -30,12 +30,12 @@ HASHKEY = 028ffbae928d7191c0017f298260995f901d78eabde1436c0af0423459cc3715832136
//Prod Oauth WGO
-CLIENT_ID = 3e4141a3-1fbd-454e-98f0-7f3a4f14a3cc
-//CLIENT_SECRET = mJN7Q~lFu.xFGa5KCc.zwIm_fJAWxajyQaFo~
-CLIENT_SECRET = tFk8Q~E.R-HFjROTu1sRKqwb_ONzy05uPYoF6awR
-RELAY_ROOT = https://prod-pedw-ns.servicebus.windows.net/prod-pedw-hc/
-RELAYURI = "prod-pedw-ns.servicebus.windows.net"
-RELAYPATH = "prod-pedw-hc"
+//CLIENT_ID = 3e4141a3-1fbd-454e-98f0-7f3a4f14a3cc
+////CLIENT_SECRET = mJN7Q~lFu.xFGa5KCc.zwIm_fJAWxajyQaFo~
+//CLIENT_SECRET = tFk8Q~E.R-HFjROTu1sRKqwb_ONzy05uPYoF6awR
+//RELAY_ROOT = https://prod-pedw-ns.servicebus.windows.net/prod-pedw-hc/
+//RELAYURI = "prod-pedw-ns.servicebus.windows.net"
+//RELAYPATH = "prod-pedw-hc"
GOOGLE_TAG_MANAGER = GTM-T78CBC3
diff --git a/components/case/summary.js b/components/case/summary.js
index a4d0b49e..26340b3c 100644
--- a/components/case/summary.js
+++ b/components/case/summary.js
@@ -411,8 +411,7 @@ const CaseSummary = (props) => {
*/}
-
- {showLoginCheck == true && (
+ {showLoginCheck == "true" && (
<>
@@ -466,26 +465,27 @@ const CaseSummary = (props) => {
{
- deleteItem(
- isWatchedCase(
- props
- .currentView
- .caseReference
- .incidentid
- )[0]
- .pinswg_watchlistid,
-
- "watchedCases"
- );
- alert(
+ confirm(
t(
"case:you-have-stopped-watching-label"
) +
props
.currentView
.caseReference
- .currentReference
- );
+ .currentReference +
+ "?"
+ ) &&
+ deleteItem(
+ isWatchedCase(
+ props
+ .currentView
+ .caseReference
+ .incidentid
+ )[0]
+ .pinswg_watchlistid,
+
+ "watchedCases"
+ );
}}
title={t(
"case:stop-watching-case-link"
@@ -499,17 +499,7 @@ const CaseSummary = (props) => {
{
- selectWatchedCase(
- props.accountDetails
- .loggedinUserId,
- props.currentView
- .caseReference
- .incidentid,
- props.currentView
- .caseReference
- .appealType
- );
- alert(
+ confirm(
t(
"case:you-are-watching-label"
) +
@@ -517,8 +507,22 @@ const CaseSummary = (props) => {
props
.currentView
.caseReference
- .currentReference
- );
+ .currentReference +
+ "?"
+ ) &&
+ selectWatchedCase(
+ props
+ .accountDetails
+ .loggedinUserId,
+ props
+ .currentView
+ .caseReference
+ .incidentid,
+ props
+ .currentView
+ .caseReference
+ .appealType
+ );
}}
>
{t(
@@ -532,7 +536,7 @@ const CaseSummary = (props) => {
className="govuk-link"
onClick={() => {
// signIn("email");
- signIn();
+ // signIn();
// selectWatchedCase(
// cookies.pinsUser,
// item.incidentid,
@@ -542,6 +546,21 @@ const CaseSummary = (props) => {
// "Trying to watch case " +
// item.title
// );
+ confirm(
+ "Trying to watch case " +
+ props.currentView
+ .caseReference
+ .currentReference +
+ "\n\nYou will now be prompted to sign in"
+ ) &&
+ signIn("email", {
+ callbackUrl:
+ "/myportal/searchresults?q=" +
+ props
+ .currentView
+ .caseReference
+ .currentReference,
+ });
}}
title={t(
"case:watch-this-case-link"
@@ -576,6 +595,7 @@ const CaseSummary = (props) => {
>
)}
+
{/* 1{" "}
{_.has(detailsObj, "pinswg_startdatetimeiftheevent") &&
detailsObj.pinswg_startdatetimeiftheevent}
diff --git a/components/myportal/awaitingsubmissionfromblob.js b/components/myportal/awaitingsubmissionfromblob.js
index aa28e440..1a6b7de0 100644
--- a/components/myportal/awaitingsubmissionfromblob.js
+++ b/components/myportal/awaitingsubmissionfromblob.js
@@ -92,10 +92,9 @@ const AwaitingSubmissionFromBlob = (props) => {
showTopThreeArr[key]
.pinswg_appealcasetype,
});
- }}>
-
+ }}
+ >
{showTopThreeArr[index].pinswg_name}
-
@@ -174,23 +173,26 @@ const AwaitingSubmissionFromBlob = (props) => {
: showTopThreeArrDets[key]["pinswg_lpaname"] || ""}