fixed stuff

This commit is contained in:
bton 2024-11-06 21:09:06 +01:00
parent 242066ada4
commit 53dd257aa0

View file

@ -83,7 +83,7 @@ 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) { if (this.selected_assignee == null) {
this.selected_assignee = val.assigned_to this.selected_assignee = val.assigned_to
} }
@ -102,6 +102,8 @@ export default {
return `ticket+${this.ticket.uuid}@${domain}`; return `ticket+${this.ticket.uuid}@${domain}`;
} }
}, },
//this.scheduleAfterInit(() => [this.fetchTicketStates(), this.loadTickets(), this.loadUsers(),
//this.fetchShippingVouchers()]);
methods: { methods: {
...mapActions(['deleteItem', 'markItemReturned', 'sendMail', 'updateTicketPartial', 'postComment']), ...mapActions(['deleteItem', 'markItemReturned', 'sendMail', 'updateTicketPartial', 'postComment']),
...mapActions(['loadTickets', 'fetchTicketStates', 'loadUsers', 'scheduleAfterInit']), ...mapActions(['loadTickets', 'fetchTicketStates', 'loadUsers', 'scheduleAfterInit']),
@ -134,8 +136,12 @@ export default {
}, },
}, },
mounted() { mounted() {
this.scheduleAfterInit(() => [this.fetchTicketStates(), this.loadTickets(), this.loadUsers(), this.scheduleAfterInit(() => [Promise.all([this.fetchTicketStates(), this.loadTickets(), this.loadUsers(), this.fetchShippingVouchers()]).then(()=>{
this.fetchShippingVouchers()]); this.selected_state = this.ticket.state;
this.selected_assignee = this.ticket.assigned_to
})]);
//this.scheduleAfterInit(() => [this.fetchTicketStates(), this.loadTickets(), this.loadUsers(),
//this.fetchShippingVouchers()]);
} }
}; };
</script> </script>