-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1107 from topcoder-platform/develop
Prod release - 0.6.0
- Loading branch information
Showing
13 changed files
with
231 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ | |
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
min-width: 280px; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -677,14 +677,19 @@ class ChallengeEditor extends Component { | |
return false | ||
} | ||
|
||
return _.every(challengePrizes.prizes, (prize) => { | ||
return _.every(challengePrizes.prizes, (prize, index) => { | ||
if (prize.value === '') { | ||
return false | ||
} | ||
const prizeNumber = parseInt(prize.value) | ||
if (prizeNumber <= 0 || prizeNumber > 1000000) { | ||
return false | ||
} | ||
if (index > 0) { | ||
if (+prize.value > +challengePrizes.prizes[index - 1].value) { | ||
return false | ||
} | ||
} | ||
return true | ||
}) | ||
} | ||
|
@@ -1157,6 +1162,7 @@ class ChallengeEditor extends Component { | |
token, | ||
removeAttachment, | ||
failedToLoad, | ||
errorMessage, | ||
projectDetail, | ||
attachments | ||
} = this.props | ||
|
@@ -1184,6 +1190,7 @@ class ChallengeEditor extends Component { | |
<div className={styles.group}> | ||
<div className={styles.row}> | ||
<div className={styles.error}> | ||
{errorMessage && <div className={styles.errorMessage}>{`Error : ${errorMessage}`}</div>} | ||
Please try again later and if the issue persists contact us at | ||
<a href='mailto:[email protected]'>[email protected]</a> | ||
to resolve the issue as soon as possible. | ||
|
@@ -1478,6 +1485,9 @@ class ChallengeEditor extends Component { | |
</div> | ||
<div className={styles.group}> | ||
<div className={styles.title}>Public specification <span>*</span></div> | ||
<div className={styles.templateLink}> | ||
<i>Access specification templates <a href='https://github.com/topcoder-platform-templates/specification-templates' target='_blank'>here</a></i> | ||
</div> | ||
<TextEditorField | ||
challengeTags={metadata.challengeTags} | ||
challenge={challenge} | ||
|
@@ -1554,6 +1564,7 @@ ChallengeEditor.propTypes = { | |
attachments: PropTypes.arrayOf(PropTypes.shape()), | ||
token: PropTypes.string.isRequired, | ||
failedToLoad: PropTypes.bool, | ||
errorMessage: PropTypes.string, | ||
history: PropTypes.any.isRequired, | ||
assignedMemberDetails: PropTypes.shape(), | ||
updateChallengeDetails: PropTypes.func.isRequired, | ||
|
Oops, something went wrong.