|
|
@ -235,6 +235,12 @@ const TimeTrack = { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.ticketSystemUrl && this.isTicketNumber(ticket.number)) { |
|
|
|
if (this.ticketSystemUrl && this.isTicketNumber(ticket.number)) { |
|
|
|
|
|
|
|
let finishedTasks = ticket.tasks.filter((task) => { |
|
|
|
|
|
|
|
return task.finished > ticket.trackingStarted && task.finished < ticket.trackingStopped; |
|
|
|
|
|
|
|
}).map((task) => { |
|
|
|
|
|
|
|
return task.name; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
iziToast.show({ |
|
|
|
iziToast.show({ |
|
|
|
message: 'Buchung gespeichert', |
|
|
|
message: 'Buchung gespeichert', |
|
|
|
color: 'blue', |
|
|
|
color: 'blue', |
|
|
@ -244,7 +250,8 @@ const TimeTrack = { |
|
|
|
transitionOut: 'fadeOutUp', |
|
|
|
transitionOut: 'fadeOutUp', |
|
|
|
onClosing: function () { |
|
|
|
onClosing: function () { |
|
|
|
window.open( |
|
|
|
window.open( |
|
|
|
component.ticketSystemUrl + ticket.number.replace('#', '').trim()+'/time_entries/new?time_entry[hours]='+(Math.round(minutesSpent)/60), |
|
|
|
component.ticketSystemUrl + ticket.number.replace('#', '').trim()+'/time_entries/new?time_entry[hours]='+(Math.round(minutesSpent)/60)+ |
|
|
|
|
|
|
|
'&time_entry[activity_id]=9&time_entry[comments]='+finishedTasks.join(', '), |
|
|
|
'_blank' |
|
|
|
'_blank' |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|