From cdaa384e87e5d85f599c84fed9a5dc88d01591e1 Mon Sep 17 00:00:00 2001 From: bkop-ds <84399410+bkop-ds@users.noreply.github.com> Date: Mon, 22 Jan 2024 23:57:53 -0500 Subject: [PATCH] Issue #37 2b --- confluence.js | 4 ++-- src/pages/dataRequest.js | 22 ++++++++++++++++++++-- src/pages/publicationpage.js | 2 +- src/pages/uploaddata.js | 2 +- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/confluence.js b/confluence.js index b9452c2..e0627cc 100644 --- a/confluence.js +++ b/confluence.js @@ -305,14 +305,14 @@ export const confluence = async () => { // .getElementById("amendmentno") // .addEventListener("click", amendFormSelect); // if (!eraLogin) { - // document.getElementById("loginERa").addEventListener("click", async function () { + // document.getElementById("logineRA").addEventListener("click", async function () { // location.href = `https://stsstg.nih.gov/auth/oauth/v2/authorize?response_type=code&client_id=ff775e46-ec74-46a3-b19f-ee2c60e8cf11&redirect_uri=https://episphere.github.io/dataplatform/&scope=openid+company+email+profile` // }); // } if (eraLogin) { await dataForm(); } else { - document.getElementById("loginERa").addEventListener("click", async function () { + document.getElementById("logineRA").addEventListener("click", async function () { localStorage.setItem('lastURL', '#data_access/form'); location.href = `https://stsstg.nih.gov/auth/oauth/v2/authorize?response_type=code&client_id=ff775e46-ec74-46a3-b19f-ee2c60e8cf11&redirect_uri=https://episphere.github.io/dataplatform/&scope=openid+company+email+profile` }); diff --git a/src/pages/dataRequest.js b/src/pages/dataRequest.js index fff1829..1e1d3ce 100644 --- a/src/pages/dataRequest.js +++ b/src/pages/dataRequest.js @@ -303,8 +303,8 @@ export const formSection = async (activeTab, showDescripton) => {
-
@@ -461,6 +461,24 @@ template += `
+

Data Selected

+
+ + +
+
+ + +
+
+ + +
+
+ + +
+

Project Description

Please provide a concise description of Background, Aims, and Analysis Plan.

diff --git a/src/pages/publicationpage.js b/src/pages/publicationpage.js index 36aeb5c..b1d028d 100644 --- a/src/pages/publicationpage.js +++ b/src/pages/publicationpage.js @@ -323,7 +323,7 @@ const renderStudyDescription = (descriptions, pageSize, headers, signedIn) => { if(signedIn) { template += `
- +
` } else { diff --git a/src/pages/uploaddata.js b/src/pages/uploaddata.js index 0abbd44..cb5dbee 100644 --- a/src/pages/uploaddata.js +++ b/src/pages/uploaddata.js @@ -152,7 +152,7 @@ export const dataUploadForm = async () => { ` document.getElementById("uploadFormView").innerHTML = template; - // document.getElementById("loginERa").addEventListener("click", async function () { + // document.getElementById("logineRA").addEventListener("click", async function () { // location.href = `https://stsstg.nih.gov/auth/oauth/v2/authorize?response_type=code&client_id=ff775e46-ec74-46a3-b19f-ee2c60e8cf11&redirect_uri=https://episphere.github.io/dataplatform/&state=${config.iniAppLocal.stateIni}` // }); var currentTab = 0;