X-Git-Url: https://git.auder.net/?p=qomet.git;a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fstatements.js;h=67aaf1212db575e3e003ce24829e694ef67fc184;hp=8cfbde3a505a6f9d2d78c2e6c49e4d71b3ef2496;hb=e49ec3e4b6e8211edb96928d225c23fd05ab548d;hpb=4a4a64970d7ee507fe100f18f0e64c1de7223af0 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", {