fix(client): allow editor links for Py submissions (#41036)

* fix(client): allow editor links for Py submissions

* add isEditorLinkAllowed to PropTypes
This commit is contained in:
Shaun Hamilton
2021-02-10 11:31:08 +00:00
committed by GitHub
parent 3bbf96e495
commit f157eda1af
4 changed files with 11 additions and 5 deletions

View File

@@ -58,7 +58,8 @@ export class SolutionForm extends Component {
solution: 'url',
githubLink: 'url'
},
required: ['solution']
required: ['solution'],
isEditorLinkAllowed: false
};
const buttonCopy = isSubmitting
@@ -89,6 +90,7 @@ export class SolutionForm extends Component {
case pythonProject:
formFields = solutionField;
options.isEditorLinkAllowed = true;
solutionLink =
solutionLink +
(description.includes('Colaboratory')