|
@ -81,9 +81,12 @@ export default { |
|
|
create() { |
|
|
create() { |
|
|
if (this.validate()) { |
|
|
if (this.validate()) { |
|
|
this.createLabel({ |
|
|
this.createLabel({ |
|
|
|
|
|
projectId: this.$route.params.id, |
|
|
text: this.labelName, |
|
|
text: this.labelName, |
|
|
|
|
|
prefix_key: null, |
|
|
suffix_key: this.suffixKey, |
|
|
suffix_key: this.suffixKey, |
|
|
background_color: this.color |
|
|
|
|
|
|
|
|
background_color: this.color.slice(0, -2), |
|
|
|
|
|
text_color: '#ffffff' |
|
|
}) |
|
|
}) |
|
|
this.reset() |
|
|
this.reset() |
|
|
this.cancel() |
|
|
this.cancel() |
|
|