From 8fc38a41d039dc1c914533a62577f60f0353a713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Sun, 11 Aug 2019 12:00:30 +0200 Subject: [PATCH] Fix color picker when creating boards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/ColorPicker.vue | 2 +- src/components/navigation/AppNavigationAddBoard.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ColorPicker.vue b/src/components/ColorPicker.vue index 0d6a6705f..8d6f1416b 100644 --- a/src/components/ColorPicker.vue +++ b/src/components/ColorPicker.vue @@ -60,7 +60,7 @@ export default { }, methods: { updateColor() { - this.$emit('input', this.color) + this.$emit('input', this.color.hex) }, hidePicker() { this.showFullPicker = false diff --git a/src/components/navigation/AppNavigationAddBoard.vue b/src/components/navigation/AppNavigationAddBoard.vue index 460bf374b..d261ed3d4 100644 --- a/src/components/navigation/AppNavigationAddBoard.vue +++ b/src/components/navigation/AppNavigationAddBoard.vue @@ -66,7 +66,7 @@ export default { const title = e.currentTarget.childNodes[0].value this.$store.dispatch('createBoard', { title: title, - color: this.color.hex.substring(1) + color: this.color.substring(1) }) this.editing = false },