From 837962e94eb522ecaa71819d00d41961f88f8cc5 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 29 Oct 2019 15:20:10 +0900 Subject: [PATCH] Enable to create a label --- frontend/components/organisms/labels/LabelCreationForm.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/components/organisms/labels/LabelCreationForm.vue b/frontend/components/organisms/labels/LabelCreationForm.vue index 6791ee89..cf844349 100644 --- a/frontend/components/organisms/labels/LabelCreationForm.vue +++ b/frontend/components/organisms/labels/LabelCreationForm.vue @@ -81,9 +81,12 @@ export default { create() { if (this.validate()) { this.createLabel({ + projectId: this.$route.params.id, text: this.labelName, + prefix_key: null, suffix_key: this.suffixKey, - background_color: this.color + background_color: this.color.slice(0, -2), + text_color: '#ffffff' }) this.reset() this.cancel()