Skip to content

Commit

Permalink
visual airlock
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Apr 11, 2024
1 parent 06d88bc commit d82ca09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion frontend/src/components/CohortsContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export const CohortsProvider = ({children}: any) => {
// Fetch cohorts data from the API using the web worker
const fetchCohortsData = () => {
worker.current?.postMessage({apiUrl});
// console.log(cohortsData)
};

// Update the metadata of a specific cohort in the context
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/pages/cohorts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ export default function CohortsList() {
✉️ {email}
</span>
))}
{cohortData.airlock && (
<span className="badge badge-outline mx-1">🔎 Data preview</span>
)}
</div>
</div>
<div className="collapse-content">
Expand Down
1 change: 1 addition & 0 deletions frontend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface Cohort {
study_duration: string;
study_ongoing: string;
study_objective: string;
airlock: boolean;
variables: {[key: string]: Variable};
}

Expand Down

0 comments on commit d82ca09

Please sign in to comment.