Browse Source

Merge pull request #470 from chakki-works/bugfix/label-creation

Bugfix: create label over 26
pull/473/head
Hiroki Nakayama 4 years ago
committed by GitHub
parent
commit
d4b7c89647
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions
  1. 8
      frontend/components/organisms/labels/LabelCreationForm.vue

8
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

Loading…
Cancel
Save