From 1131a8e77245bf3e088d945db785c1e22dc5f998 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Thu, 8 Feb 2018 19:11:03 +0100
Subject: [PATCH] cosmetics: hide send button during exam review

---
 views/assessment.pug | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/views/assessment.pug b/views/assessment.pug
index 5c573d7..e45e282 100644
--- a/views/assessment.pug
+++ b/views/assessment.pug
@@ -47,10 +47,10 @@ block content
 						.card(v-show="stage==2")
 							.timer.center {{ countdown }}
 					.card
-						button.sendAnswer.waves-effect.waves-light.btn(@click="sendAnswer") Send
+						button.sendAnswer.waves-effect.waves-light.btn(v-show="stage==2" @click="sendAnswer") Send
 						statements(:questions="assessment.questions" :answers="answers")
 						if assessment.display == "all"
-							button.sendAnswer.waves-effect.waves-light.btn(@click="sendAnswer") Send
+							button.sendAnswer.waves-effect.waves-light.btn(v-show="stage==2" @click="sendAnswer") Send
 				#stage3(v-show="stage==3")
 					.card
 						.finish Exam completed &#9786; ...don't close the window!
-- 
2.44.0