diff --git a/css/app.css b/css/app.css
index abd2d79..1e674fa 100644
--- a/css/app.css
+++ b/css/app.css
@@ -234,3 +234,7 @@ nav, .card {
#trackerTasksModal input[type=range] {
width: 100%;
}
+
+.ticket-icon {
+ max-width: 24px;
+}
\ No newline at end of file
diff --git a/js/app.js b/js/app.js
index bedd93d..cc91c2b 100644
--- a/js/app.js
+++ b/js/app.js
@@ -239,15 +239,14 @@ const TimeTrack = {
message: 'Buchung gespeichert',
color: 'blue',
buttons: [
- ['', function (instance, toast) {
+ ['', function (instance, toast) {
instance.hide({
transitionOut: 'fadeOutUp',
- onClosing: function(instance, toast, closedBy){
- component.restoreTrashed();
+ onClosing: function () {
+ window.open(
+ component.ticketSystemUrl + ticket.number.replace('#', '').trim()+'/time_entries/new?time_entry[hours]='+(Math.round(minutesSpent)/60),
+ '_blank'
+ );
}
}, toast, 'buttonName');
}, true]