Fix color picker when creating boards

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2019-08-11 12:00:30 +02:00
parent 097bb21b45
commit 8fc38a41d0
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ export default {
}, },
methods: { methods: {
updateColor() { updateColor() {
this.$emit('input', this.color) this.$emit('input', this.color.hex)
}, },
hidePicker() { hidePicker() {
this.showFullPicker = false this.showFullPicker = false

View File

@@ -66,7 +66,7 @@ export default {
const title = e.currentTarget.childNodes[0].value const title = e.currentTarget.childNodes[0].value
this.$store.dispatch('createBoard', { this.$store.dispatch('createBoard', {
title: title, title: title,
color: this.color.hex.substring(1) color: this.color.substring(1)
}) })
this.editing = false this.editing = false
}, },