bton/dev #69

Merged
j3d1 merged 5 commits from bton/dev into jedi/dev 2024-11-03 19:59:20 +00:00
Showing only changes of commit 4dbe364e6d - Show all commits

View file

@ -20,7 +20,7 @@
</select> </select>
<button class="form-control btn btn-success" <button class="form-control btn btn-success"
@click="assignTicket(ticket)" @click="assignTicket(ticket)"
:disabled="!selected_assignee && (selected_assignee == ticket.assigned_to)"> :disabled="!selected_assignee || (selected_assignee == ticket.assigned_to)">
Assign&nbsp;Ticket Assign&nbsp;Ticket
</button> </button>
</div> </div>
@ -75,7 +75,7 @@ export default {
data() { data() {
return { return {
selected_state: null, selected_state: null,
Selected_assignee: null, selected_assignee: null,
shipping_voucher_type: null, shipping_voucher_type: null,
} }
}, },
@ -83,7 +83,10 @@ export default {
ticket(val) { ticket(val) {
if (this.selected_state == null){ if (this.selected_state == null){
this.selected_state = val.state; this.selected_state = val.state;
} };
if(this.selected_assignee == null){
this.selected_assignee = val.assigned_to
}
} }
}, },
computed: { computed: {