Explorar o código

see also #245

ali %!s(int64=2) %!d(string=hai) anos
pai
achega
68520de1ef
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  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)