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:
@@ -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')
|
||||
|
Reference in New Issue
Block a user