+
Granularity:
{props.resultSets !== 'MISS' && (
)}
diff --git a/frontend/src/components/Biosamples/BiosamplesResults.js b/frontend/src/components/Biosamples/BiosamplesResults.js
index 67ecd0f..ffe657a 100644
--- a/frontend/src/components/Biosamples/BiosamplesResults.js
+++ b/frontend/src/components/Biosamples/BiosamplesResults.js
@@ -40,6 +40,10 @@ function BiosamplesResults (props) {
const [queryArray, setQueryArray] = useState([])
const [arrayFilter, setArrayFilter] = useState([])
+ const [isActive1, setIsActive1] = useState(false)
+ const [isActive2, setIsActive2] = useState(false)
+ const [isActive3, setIsActive3] = useState(false)
+
const { getStoredToken, authenticateUser } = useContext(AuthContext)
let queryStringTerm = ''
@@ -48,6 +52,39 @@ function BiosamplesResults (props) {
const auth = useAuth()
let isAuthenticated = auth.userData?.id_token ? true : false
+ const handleTypeResults1 = () => {
+ setShow1(true)
+ setShow2(false)
+ setShow3(false)
+ setIsActive1(true)
+ setIsActive2(false)
+ setIsActive3(false)
+ }
+
+ const handleTypeResults2 = () => {
+ setShow2(true)
+ setShow1(false)
+ setShow3(false)
+ setIsActive2(true)
+ setIsActive3(false)
+ setIsActive1(false)
+ }
+
+ const handleTypeResults3 = () => {
+ setShow3(true)
+ setShow1(false)
+ setShow2(false)
+ setIsActive3(true)
+ setIsActive1(false)
+ setIsActive2(false)
+ }
+
+ const onSubmit = () => {
+ setSkipTrigger(skip)
+ setLimitTrigger(limit)
+ setTimeOut(false)
+ }
+
useEffect(() => {
const apiCall = async () => {
if (isAuthenticated === false) {
@@ -394,28 +431,7 @@ function BiosamplesResults (props) {
apiCall()
}, [])
- const handleTypeResults1 = () => {
- setShow1(true)
- setShow2(false)
- setShow3(false)
- }
-
- const handleTypeResults2 = () => {
- setShow2(true)
- setShow1(false)
- setShow3(false)
- }
- const handleTypeResults3 = () => {
- setShow3(true)
- setShow1(false)
- setShow2(false)
- }
- const onSubmit = () => {
- setSkipTrigger(skip)
- setLimitTrigger(limit)
- setTimeOut(false)
- }
return (
{timeOut === false && (
@@ -438,14 +454,34 @@ function BiosamplesResults (props) {
Granularity:
- {props.resultSets !== 'MISS' && }
+ {props.resultSets !== 'MISS' && (
+
+ )}
)}
diff --git a/frontend/src/components/Datasets/ResultsDatasets.css b/frontend/src/components/Datasets/ResultsDatasets.css
index bd519ee..6679051 100644
--- a/frontend/src/components/Datasets/ResultsDatasets.css
+++ b/frontend/src/components/Datasets/ResultsDatasets.css
@@ -382,9 +382,9 @@ p a {
justify-content: center;
align-items: center;
width: -moz-fit-content;
- width: 100%;
+ width: fit-content;
background: #c8d4e6;
- height: 60px;
+ height: fit-content;
margin-top: 2px;
}
}
diff --git a/frontend/src/components/GenomicVariations/VariantsResults.js b/frontend/src/components/GenomicVariations/VariantsResults.js
index 05313d1..aa37ccc 100644
--- a/frontend/src/components/GenomicVariations/VariantsResults.js
+++ b/frontend/src/components/GenomicVariations/VariantsResults.js
@@ -36,23 +36,38 @@ function VariantsResults (props) {
const [resultsPerDataset, setResultsDataset] = useState([])
const [resultsNotPerDataset, setResultsNotPerDataset] = useState([])
+ const [isActive1, setIsActive1] = useState(false)
+ const [isActive2, setIsActive2] = useState(false)
+ const [isActive3, setIsActive3] = useState(false)
+
let queryStringTerm = ''
+
+
const handleTypeResults1 = () => {
setShow1(true)
setShow2(false)
setShow3(false)
+ setIsActive1(true)
+ setIsActive2(false)
+ setIsActive3(false)
}
const handleTypeResults2 = () => {
setShow2(true)
setShow1(false)
setShow3(false)
+ setIsActive2(true)
+ setIsActive3(false)
+ setIsActive1(false)
}
const handleTypeResults3 = () => {
setShow3(true)
setShow1(false)
setShow2(false)
+ setIsActive3(true)
+ setIsActive1(false)
+ setIsActive2(false)
}
const auth = useAuth()
@@ -653,17 +668,35 @@ function VariantsResults (props) {
)}
{timeOut && error !== 'Connection error. Please retry' && (
-
+
Granularity:
{props.resultSets !== 'MISS' && (
)}
diff --git a/frontend/src/components/Individuals/IndividualsResults.js b/frontend/src/components/Individuals/IndividualsResults.js
index 3d818af..6cf98d4 100644
--- a/frontend/src/components/Individuals/IndividualsResults.js
+++ b/frontend/src/components/Individuals/IndividualsResults.js
@@ -403,6 +403,8 @@ function IndividualsResults (props) {
setShow2(false)
setShow3(false)
setIsActive1(true)
+ setIsActive2(false)
+ setIsActive3(false)
}
const handleTypeResults2 = () => {
@@ -410,6 +412,8 @@ function IndividualsResults (props) {
setShow1(false)
setShow3(false)
setIsActive2(true)
+ setIsActive3(false)
+ setIsActive1(false)
}
const handleTypeResults3 = () => {
@@ -417,6 +421,8 @@ function IndividualsResults (props) {
setShow1(false)
setShow2(false)
setIsActive3(true)
+ setIsActive1(false)
+ setIsActive2(false)
}
const onSubmit = () => {
setSkipTrigger(skip)
diff --git a/frontend/src/components/Layout/Layout.js b/frontend/src/components/Layout/Layout.js
index 60cb512..a8ba664 100644
--- a/frontend/src/components/Layout/Layout.js
+++ b/frontend/src/components/Layout/Layout.js
@@ -558,7 +558,7 @@ function Layout (props) {
alt='impactLogo'
>
*/}
-
v0.5.0
+
v0.5.1
@@ -1826,16 +1826,7 @@ function Layout (props) {
setQuery={setQuery}
/>
)}
- {results !== null && timeOut === true && showFilteringTerms && (
-
- )}
+
{timeOut === true && error &&
{error}
}