bton/dev #69
1 changed files with 6 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
|||
</select>
|
||||
<button class="form-control btn btn-success"
|
||||
@click="assignTicket(ticket)"
|
||||
:disabled="!selected_assignee && (selected_assignee == ticket.assigned_to)">
|
||||
:disabled="!selected_assignee || (selected_assignee == ticket.assigned_to)">
|
||||
Assign Ticket
|
||||
</button>
|
||||
</div>
|
||||
|
@ -75,7 +75,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
selected_state: null,
|
||||
Selected_assignee: null,
|
||||
selected_assignee: null,
|
||||
shipping_voucher_type: null,
|
||||
}
|
||||
},
|
||||
|
@ -83,6 +83,9 @@ export default {
|
|||
ticket(val) {
|
||||
if (this.selected_state == null){
|
||||
this.selected_state = val.state;
|
||||
};
|
||||
if(this.selected_assignee == null){
|
||||
this.selected_assignee = val.assigned_to
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue