cosmetics: hide send button during exam review
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 8 Feb 2018 18:11:03 +0000 (19:11 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 8 Feb 2018 18:11:03 +0000 (19:11 +0100)
views/assessment.pug

index 5c573d7..e45e282 100644 (file)
@@ -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!