assigned ticket button is pre selected and deisabled if selected person == asigned person
This commit is contained in:
parent
e801c12601
commit
c51d29a538
1 changed files with 5 additions and 2 deletions
|
@ -19,7 +19,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>
|
||||
|
@ -73,7 +73,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
selected_state: null,
|
||||
Selected_assignee: null,
|
||||
selected_assignee: null,
|
||||
shipping_voucher_type: null,
|
||||
}
|
||||
},
|
||||
|
@ -82,6 +82,9 @@ export default {
|
|||
if (this.selected_state == null) {
|
||||
this.selected_state = val.state;
|
||||
}
|
||||
if (this.selected_assignee == null) {
|
||||
this.selected_assignee = val.assigned_to
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
Loading…
Reference in a new issue