Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions eda-frontend/src/components/LTI/LTI.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,14 @@ export default function LTIConfig () {

// eslint-disable-next-line
const handleLTIGenerate = () => {
if (!ltiDetails.consumerKey || !ltiDetails.secretKey) {
setLTIDetails({ ...ltiDetails, consumerError: 'Consumer Key and Secret Key are required.' })
return
}
if (!ltiDetails.modelSchematic || !ltiDetails.modelSchematic.id) {
setLTIDetails({ ...ltiDetails, consumerError: 'Please select a schematic before generating LTI URL.' })
return
}
var score = ''
if (!ltiDetails.scored) {
score = null
Expand Down