Skip to content
This repository was archived by the owner on Jan 10, 2021. It is now read-only.

Commit dc49716

Browse files
authored
Merge pull request #56 from Slugbotics/tdimhcsleumas/bug_fix
bug fix
2 parents 02bb015 + c86a21d commit dc49716

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

static/components/ticket_modal/ticket_modal.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
};

templates/tickets.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
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>

0 commit comments

Comments
 (0)