Date: Mon, 11 Oct 2021 17:59:42 +0200
Subject: [PATCH 21/80] Fix indentation
---
src/components/QuestionTypes/MatrixType.vue | 26 ++++++++++-----------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/components/QuestionTypes/MatrixType.vue b/src/components/QuestionTypes/MatrixType.vue
index 73f1e4d5..37810e93 100644
--- a/src/components/QuestionTypes/MatrixType.vue
+++ b/src/components/QuestionTypes/MatrixType.vue
@@ -23,7 +23,7 @@
class="f-table-row"
>
|
- {{ row.label }}
+ {{ row.label }}
|
/*
- Copyright (c) 2020 - present, DITDOT Ltd. - MIT Licence
- https://github.com/ditdot-dev/vue-flow-form
- https://www.ditdot.hr/en
- */
+ Copyright (c) 2020 - present, DITDOT Ltd. - MIT Licence
+ https://github.com/ditdot-dev/vue-flow-form
+ https://www.ditdot.hr/en
+*/
-import BaseType from "./BaseType.vue"
-import { QuestionType } from "../../models/QuestionModel"
+import BaseType from './BaseType.vue'
+import { QuestionType } from '../../models/QuestionModel'
export default {
extends: BaseType,
@@ -104,9 +104,9 @@ export default {
beforeMount() {
// Pre-fill the form if there is a predefined answer
if (this.question.multiple) {
- for (let row of this.question.rows) {
- this.selected[row.id] = this.question.answer && this.question.answer[row.id] ? [...this.question.answer[row.id]] : []
- }
+ for (let row of this.question.rows) {
+ this.selected[row.id] = this.question.answer && this.question.answer[row.id] ? [...this.question.answer[row.id]] : []
+ }
} else if (this.question.answer) {
this.selected = {...this.question.answer}
}
@@ -119,6 +119,6 @@ export default {
this.onKeyDown()
this.setAnswer(this.dataValue)
}
- }
-}
+ }
+}
From 68d0e21943feae389daaa0251686020edf3487da Mon Sep 17 00:00:00 2001
From: EkaterinaVu
Date: Tue, 12 Oct 2021 10:21:22 +0200
Subject: [PATCH 22/80] Add validation when question required
---
src/components/QuestionTypes/MatrixType.vue | 26 +++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
diff --git a/src/components/QuestionTypes/MatrixType.vue b/src/components/QuestionTypes/MatrixType.vue
index 37810e93..49de98eb 100644
--- a/src/components/QuestionTypes/MatrixType.vue
+++ b/src/components/QuestionTypes/MatrixType.vue
@@ -35,6 +35,7 @@
|