diff --git a/src/shared/components/SubmissionManagement/Submission/index.jsx b/src/shared/components/SubmissionManagement/Submission/index.jsx
index 0bc769ed7a..c4ed0f70a1 100644
--- a/src/shared/components/SubmissionManagement/Submission/index.jsx
+++ b/src/shared/components/SubmissionManagement/Submission/index.jsx
@@ -27,6 +27,7 @@ import './styles.scss';
export default function Submission(props) {
const {
+ challenge,
submissionObject,
showScreeningDetails,
track,
@@ -40,6 +41,15 @@ export default function Submission(props) {
const onDownloadSubmission = onDownload.bind(1, submissionObject.id);
const safeForDownloadCheck = safeForDownload(submissionObject.url);
+ // Determine if a challenge is for Topcrowd so we can edit the UI accordingly
+ let isTopCrowdChallenge = false;
+ if (challenge) {
+ const isTopCrowdChallengeData = _.find(challenge.metadata, { name: 'is_platform' });
+ if (isTopCrowdChallengeData) {
+ isTopCrowdChallenge = isTopCrowdChallengeData.value;
+ }
+ }
+
return (
@@ -72,12 +82,16 @@ export default function Submission(props) {
}
|
-
+ { !isTopCrowdChallenge
+ ? (
+
+ )
+ : }
{ /*
TODO: At the moment we just fetch downloads from the legacy
Topcoder Studio API, and we don't need any JS code to this.
@@ -121,6 +135,7 @@ Submission.defaultProps = {
};
Submission.propTypes = {
+ challenge: PT.shape().isRequired,
submissionObject: PT.shape({
id: PT.string,
legacySubmissionId: PT.string,
diff --git a/src/shared/components/SubmissionManagement/SubmissionManagement/index.jsx b/src/shared/components/SubmissionManagement/SubmissionManagement/index.jsx
index a467381a39..5217eb3419 100644
--- a/src/shared/components/SubmissionManagement/SubmissionManagement/index.jsx
+++ b/src/shared/components/SubmissionManagement/SubmissionManagement/index.jsx
@@ -171,6 +171,7 @@ export default function SubmissionManagement(props) {
{!loadingSubmissions
&& (
@@ -432,25 +441,29 @@ class SubmissionsListView extends React.Component {
{moment(mySubmission.submissionTime).format('MMM DD, YYYY HH:mm:ss')}
-
+ { !isTopCrowdChallenge
+ ? (
+
+ )
+ : }
|