Skip to content

Commit

Permalink
Fix checkSubmission in LibCrowds Viewer presenter
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed Nov 8, 2017
1 parent 477ded0 commit 0763836
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions components/presenters/LibcrowdsViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,20 @@ export default {
`Each sheet usually contains at least 2 ${pluralize(tag, 2)}.<br>
You have outlined ${nAnnotations}.<br>
Are you sure you want to submit this sheet?`
)
).then(() => {
resolve()
}).catch(err => {
console.info(err)
})
} else if (mode === 'transcribe' && nAnnotations < 1) {
return showConfirm(
`You have not added any transcriptions.<br>
Are you sure you want to submit this sheet?`
)
).then(() => {
resolve()
}).catch(err => {
console.info(err)
})
} else {
resolve()
}
Expand Down

0 comments on commit 0763836

Please sign in to comment.