From 462e86bd36ca45eb4c0a8bd53663159056ae7032 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Mon, 8 Oct 2018 12:27:31 +0100 Subject: [PATCH] Removed incorrect validation of tutor selections. --- frontend/src/views/Home.vue | 9 +- frontend/src/views/Observation.vue | 554 +++++++++++++++-------------- 2 files changed, 298 insertions(+), 265 deletions(-) diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue index bd48abc..ae52769 100644 --- a/frontend/src/views/Home.vue +++ b/frontend/src/views/Home.vue @@ -65,8 +65,7 @@

Select a site first.

+ :options="tutorOptions"> @@ -144,10 +143,12 @@ console.log("submit"); e.preventDefault(); e.stopPropagation(); - let form = document.getElementById("submission-form"); - if (form.checkValidity()) { + var form = document.getElementById("submission-form"); + if (form.checkValidity() && this.tutors.length > 0) { + console.log("valid"); this.$router.push("/observation"); } + form.classList.add("was-validated"); } } }; diff --git a/frontend/src/views/Observation.vue b/frontend/src/views/Observation.vue index 6e9479b..b8b135d 100644 --- a/frontend/src/views/Observation.vue +++ b/frontend/src/views/Observation.vue @@ -1,272 +1,304 @@