From 2f3f65a3d70c27858dd9fb892657403ea6373a8a Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Thu, 20 Sep 2018 16:49:39 +0100 Subject: [PATCH] Can now transition from home to observation page properly. --- frontend/src/views/Home.vue | 89 +++++++++++++++++++++---------------- 1 file changed, 50 insertions(+), 39 deletions(-) diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue index 950e730..2544c76 100644 --- a/frontend/src/views/Home.vue +++ b/frontend/src/views/Home.vue @@ -1,45 +1,47 @@ @@ -81,6 +83,15 @@ export default { this.loadingTutors = false; }); } + }, + onSubmit: function(e) { + console.log("submit"); + e.preventDefault(); + e.stopPropagation(); + var form = document.getElementById("submission-form"); + if (form.checkValidity()) { + this.$router.push("/observation"); + } } } };