Selaa lähdekoodia

see also #245

ali 2 vuotta sitten
vanhempi
commit
68520de1ef
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 9 0
      src/pages/User/Profile/sessionInfo.vue

+ 9 - 0
src/pages/User/Profile/sessionInfo.vue

@@ -315,6 +315,15 @@ export default {
         })
     },
     submitAssignment () {
+      const answerText = FormBuilderAssist.getInputsByName(this.submitAssignmentInputs, 'answer_text').value
+      if (!answerText) {
+        this.$q.notify({
+          type: 'negative',
+          message: 'متن پاسخ را کامل کنید.',
+          position: 'top'
+        })
+        return
+      }
       this.entityLoading = true
       this.submitAssignmentLoading = true
       this.$refs.entityCreateSubmitAssignment.createEntity(false)