This repository was archived by the owner on Jan 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
static/components/ticket_modal Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,7 @@ Vue.component('v-select', VueSelect.VueSelect);
6969 } ;
7070
7171 ticket_modal . methods . submit = function ( ) {
72- let i = 0 ;
7372 let error = false ;
74- for ( let a of this . selected ) {
75- this . ticket . tag_list . unshift ( a ) ;
76- }
7773
7874 date = this . due_date ? ticket_modal . methods . check_date ( this . due_date ) : this . due_date ;
7975 if ( date . invalid ) {
@@ -109,12 +105,17 @@ Vue.component('v-select', VueSelect.VueSelect);
109105 error = true ;
110106
111107 }
108+
112109 if ( ! error ) {
113110
114111 // TODO: convert the timestamp
115112 this . ticket . due_date = date ? date . setZone ( "utc" ) . toString ( ) : date ;
116113 this . ticket . assigned_user = this . assigned_user ;
117114
115+ for ( let a of this . selected ) {
116+ this . ticket . tag_list . unshift ( a ) ;
117+ }
118+
118119 this . $emit ( 'submit' ) ;
119120 }
120121 } ;
Original file line number Diff line number Diff line change 9090 Completed
9191 </ span >
9292 </ div >
93- < div class ="level-item " v-for ="tag in t.tag_list ">
93+ < div class ="level-item " v-for ="tag in t.tag_list " style =" max-width: 100px; word-wrap:break-word; " >
9494 < span class ="tag has-background-grey-lighter ">
9595 {{tag.tag_name}}
9696 </ span >
You can’t perform that action at this time.
0 commit comments