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 55 cancel-text =" Cancel"
66 :disabled =" !valid"
77 @agree =" create"
8- @cancel =" cancel "
8+ @cancel =" reset "
99 >
1010 <template #content >
1111 <v-form
@@ -87,20 +87,20 @@ export default {
8787 },
8888 reset () {
8989 this .$refs .form .reset ()
90+ this .cancel (' close' )
9091 },
9192 create () {
9293 if (this .validate ()) {
9394 this .createLabel ({
9495 projectId: this .$route .params .id ,
9596 text: this .labelName ,
9697 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
99100 text_color: ' #ffffff'
100101 })
101102 .then (() => {
102103 this .reset ()
103- this .cancel ()
104104 })
105105 .catch (() => {
106106 this .showError = true
You can’t perform that action at this time.
0 commit comments