From: Benjamin Auder Date: Mon, 5 Feb 2018 14:27:37 +0000 (+0100) Subject: cosmetics X-Git-Url: https://git.auder.net/variants/Baroque/current/%7B%7B%20asset%28%27mixstore/js/summernote.min.js%27%29%20%7D%7D?a=commitdiff_plain;h=e49ec3e4b6e8211edb96928d225c23fd05ab548d;p=qomet.git cosmetics --- diff --git a/public/javascripts/components/statements.js b/public/javascripts/components/statements.js index 8cfbde3..67aaf12 100644 --- a/public/javascripts/components/statements.js +++ b/public/javascripts/components/statements.js @@ -1,7 +1,7 @@ Vue.component("statements", { // 'answers' is an object containing // 'inputs'(array), - // 'displayAll'(bool), + // 'displayAll'(bool), //TODO: should be in questions! // 'showSolution'(bool), // 'indices': order of appearance // 'index': current integer index (focused question) @@ -88,6 +88,8 @@ Vue.component("statements", { optionList ) ); + if (this.answers.displayAll && i < this.questions.length-1) + questionContent.push( h("hr") ); return h( "div", {