diff --git a/src/components/Questions/AnswerInput.vue b/src/components/Questions/AnswerInput.vue index 424e74b..143d7a7 100644 --- a/src/components/Questions/AnswerInput.vue +++ b/src/components/Questions/AnswerInput.vue @@ -135,6 +135,7 @@ export default { questionId: answer.question_id, text: answer.text, }) + console.debug('Created answer', answer) // Was synced once, this is now up to date with the server delete answer.local diff --git a/src/components/Questions/Question.vue b/src/components/Questions/Question.vue index 6fde335..b188195 100644 --- a/src/components/Questions/Question.vue +++ b/src/components/Questions/Question.vue @@ -42,7 +42,8 @@ minlength="1" maxlength="256" required - @input="onInput"> + @input="onInput" + @keyup="onTitleChange">

@@ -57,7 +58,12 @@ diff --git a/src/mixins/QuestionMixin.js b/src/mixins/QuestionMixin.js index 4056d30..27a73de 100644 --- a/src/mixins/QuestionMixin.js +++ b/src/mixins/QuestionMixin.js @@ -23,6 +23,7 @@ import Question from '../components/Questions/Question' export default { inheritAttrs: false, props: { + /** * The question title */ diff --git a/src/utils/GenRandomId.js b/src/utils/GenRandomId.js index aa0d6fc..275735e 100644 --- a/src/utils/GenRandomId.js +++ b/src/utils/GenRandomId.js @@ -1,6 +1,6 @@ /** - * @copyright Copyright (c) 2018 John Molakvoæ + * @copyright Copyright (c) 2020 John Molakvoæ * * @author John Molakvoæ *