Add rating system for community questions

This commit is contained in:
2022-11-10 22:50:45 +01:00
parent a389d4be84
commit a269902743
4 changed files with 180 additions and 24 deletions

View File

@@ -3,7 +3,7 @@
<v-card-title>Community Fragen</v-card-title>
<OpenEndedQuestionsList :questions="questions" />
<v-divider></v-divider>
<AddOpenEndedQuestion />
<AddOpenEndedQuestion @added="addQuestionToList" />
</v-card>
</template>
@@ -43,6 +43,9 @@ export default {
// Failed to fetch questions from the database; display error message
this.$toast({ content: error, color: 'error' })
})
},
addQuestionToList (q) {
this.questions.push(q)
}
}
}