File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
frontend/components/organisms/labels Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
cancel-text =" Cancel"
6
6
:disabled =" !valid"
7
7
@agree =" create"
8
- @cancel =" cancel "
8
+ @cancel =" reset "
9
9
>
10
10
<template #content >
11
11
<v-form
@@ -87,20 +87,20 @@ export default {
87
87
},
88
88
reset () {
89
89
this .$refs .form .reset ()
90
+ this .cancel (' close' )
90
91
},
91
92
create () {
92
93
if (this .validate ()) {
93
94
this .createLabel ({
94
95
projectId: this .$route .params .id ,
95
96
text: this .labelName ,
96
97
prefix_key: null ,
97
- suffix_key: this .suffixKey ,
98
- background_color: this .color .slice (0 , - 2 ),
98
+ suffix_key: this .suffixKey ? this . suffixKey : null ,
99
+ background_color: this .color .slice (0 , 7 ), // #12345678 -> #123456
99
100
text_color: ' #ffffff'
100
101
})
101
102
.then (() => {
102
103
this .reset ()
103
- this .cancel ()
104
104
})
105
105
.catch (() => {
106
106
this .showError = true
You can’t perform that action at this time.
0 commit comments