diff --git a/src/app/components/public/study/study.component.html b/src/app/components/public/study/study.component.html
index 43fe2804..1c0744c6 100644
--- a/src/app/components/public/study/study.component.html
+++ b/src/app/components/public/study/study.component.html
@@ -72,6 +72,27 @@
+ state.study.identifier) studyIdentifier;
@select((state) => state.status.user) user;
@select((state) => state.study.status) studyStatus;
+ @select((state) => state.study.curationRequest) curationRequestState;
@select((state) => state.study.validation) studyValidation;
@select((state) => state.status.currentTabIndex) currentIndex: number;
@select((state) => state.study.investigationFailed) investigationFailed;
@@ -35,6 +36,7 @@ export class PublicStudyComponent implements OnInit {
status = "submitted";
tab = "descriptors";
requestedStudy: string = null;
+ curationRequest = ""
studyError = false;
validation: any = {};
files: any = null;
@@ -139,6 +141,12 @@ export class PublicStudyComponent implements OnInit {
}
});
+ this.curationRequestState.subscribe((value) => {
+ if(value){
+ this.curationRequest = value;
+ }
+ });
+
this.studyReviewerLink.subscribe((value) => {
this.reviewerLink = value;
});
diff --git a/src/app/components/store.ts b/src/app/components/store.ts
index c25e84aa..dc083986 100644
--- a/src/app/components/store.ts
+++ b/src/app/components/store.ts
@@ -37,6 +37,7 @@ export const SHARED_INITIAL_STATE: Record
= {
info: "",
configuration: "",
isCurator: false,
+ curationRequest: null,
user: null,
error: false,
message: "",
diff --git a/src/app/components/study/actions.ts b/src/app/components/study/actions.ts
index 8fca8d8c..de3e6976 100644
--- a/src/app/components/study/actions.ts
+++ b/src/app/components/study/actions.ts
@@ -5,6 +5,8 @@ export const SET_STUDY_ABSTRACT = "SET_STUDY_ABSTRACT";
export const SET_STUDY_SUBMISSION_DATE = "SET_STUDY_SUBMISSION_DATE";
export const SET_STUDY_RELEASE_DATE = "SET_STUDY_RELEASE_DATE";
export const SET_STUDY_STATUS = "SET_STUDY_STATUS";
+export const SET_STUDY_CURATION_REQUEST = "SET_STUDY_CURATION_REQUEST";
+
export const SET_STUDY_REVIEWER_LINK = "SET_STUDY_REVIEWER_LINK";
export const SET_STUDY_PUBLICATIONS = "SET_STUDY_PUBLICATIONS";
diff --git a/src/app/components/study/status/status.component.css b/src/app/components/study/status/status.component.css
index 5a244f18..83cda8c6 100644
--- a/src/app/components/study/status/status.component.css
+++ b/src/app/components/study/status/status.component.css
@@ -1,3 +1,7 @@
.error-message {
color: red;
}
+.not-curated {
+ background-color: orange;
+ color: white;
+}
diff --git a/src/app/components/study/status/status.component.html b/src/app/components/study/status/status.component.html
index fafdae3a..9cc36013 100644
--- a/src/app/components/study/status/status.component.html
+++ b/src/app/components/study/status/status.component.html
@@ -1,9 +1,32 @@
diff --git a/src/app/components/study/status/status.component.ts b/src/app/components/study/status/status.component.ts
index 7f8754e1..341e9d21 100644
--- a/src/app/components/study/status/status.component.ts
+++ b/src/app/components/study/status/status.component.ts
@@ -24,6 +24,7 @@ export class StatusComponent implements OnInit {
@select((state) => state.study.validation) studyValidation;
@select((state) => state.status.isCurator) isCurator;
@select((state) => state.study.identifier) studyIdentifier;
+ @select((state) => state.study.curationRequest) curationRequestState;
@select((state) => state.study.readonly) readonly;
isReadOnly = false;
@@ -33,6 +34,7 @@ export class StatusComponent implements OnInit {
status: string = null;
curator = false;
toStatus = "Submitted";
+ curationRequest: string = null;
requestedStudy: string = null;
validation: IValidationSummary;
constructor(
@@ -43,6 +45,9 @@ export class StatusComponent implements OnInit {
}
setUpSubscriptions() {
+ this.curationRequestState.subscribe((value) => {
+ this.curationRequest = value;
+ });
this.studyValidation.subscribe((value) => {
this.validation = value;
});
diff --git a/src/app/components/study/store.ts b/src/app/components/study/store.ts
index 179946af..59b1a6a9 100644
--- a/src/app/components/study/store.ts
+++ b/src/app/components/study/store.ts
@@ -14,6 +14,7 @@ import {
SET_STUDY_SUBMISSION_DATE,
SET_STUDY_RELEASE_DATE,
SET_STUDY_STATUS,
+ SET_STUDY_CURATION_REQUEST,
SET_STUDY_REVIEWER_LINK,
SET_STUDY_ASSAYS,
SET_STUDY_PUBLICATIONS,
@@ -116,6 +117,10 @@ function setStudyStatus(state, action) {
return tassign(state, { status: action.body.study.mtblsStudy.studyStatus });
}
+function setCurationRequest(state, action) {
+ return tassign(state, { curationRequest: action.body.study.mtblsStudy.curationRequest });
+}
+
function setStudyReviewerLink(state, action) {
return tassign(state, {
reviewerLink: action.body.study.mtblsStudy.reviewer_link,
@@ -349,9 +354,10 @@ export function studyReducer(
return setStudyTitle(state, action);
case SET_STUDY_ABSTRACT:
return setStudyAbstract(state, action);
-
case SET_STUDY_STATUS:
return setStudyStatus(state, action);
+ case SET_STUDY_CURATION_REQUEST:
+ return setCurationRequest(state, action);
case SET_STUDY_REVIEWER_LINK:
return setStudyReviewerLink(state, action);
diff --git a/src/app/components/study/study.component.html b/src/app/components/study/study.component.html
index 8a40433e..13337cfd 100644
--- a/src/app/components/study/study.component.html
+++ b/src/app/components/study/study.component.html
@@ -83,7 +83,27 @@
+