Browse Source
Merge pull request #470 from chakki-works/bugfix/label-creation
Bugfix: create label over 26
pull/473/head
Hiroki Nakayama
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
frontend/components/organisms/labels/LabelCreationForm.vue
|
|
@ -5,7 +5,7 @@ |
|
|
|
cancel-text="Cancel" |
|
|
|
:disabled="!valid" |
|
|
|
@agree="create" |
|
|
|
@cancel="cancel" |
|
|
|
@cancel="reset" |
|
|
|
> |
|
|
|
<template #content> |
|
|
|
<v-form |
|
|
@ -87,6 +87,7 @@ export default { |
|
|
|
}, |
|
|
|
reset() { |
|
|
|
this.$refs.form.reset() |
|
|
|
this.cancel('close') |
|
|
|
}, |
|
|
|
create() { |
|
|
|
if (this.validate()) { |
|
|
@ -94,13 +95,12 @@ export default { |
|
|
|
projectId: this.$route.params.id, |
|
|
|
text: this.labelName, |
|
|
|
prefix_key: null, |
|
|
|
suffix_key: this.suffixKey, |
|
|
|
background_color: this.color.slice(0, -2), |
|
|
|
suffix_key: this.suffixKey ? this.suffixKey : null, |
|
|
|
background_color: this.color.slice(0, 7), // #12345678 -> #123456 |
|
|
|
text_color: '#ffffff' |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.reset() |
|
|
|
this.cancel() |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.showError = true |
|
|
|