diff --git a/.idea/timetrack.iml b/.idea/timetrack.iml
index c956989..3b49875 100644
--- a/.idea/timetrack.iml
+++ b/.idea/timetrack.iml
@@ -4,5 +4,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/assets/img/gitlab.png b/assets/img/gitlab.png
new file mode 100644
index 0000000..cc83179
Binary files /dev/null and b/assets/img/gitlab.png differ
diff --git a/assets/img/jira.png b/assets/img/jira.png
new file mode 100644
index 0000000..4a09838
Binary files /dev/null and b/assets/img/jira.png differ
diff --git a/assets/img/redmine.png b/assets/img/redmine.png
new file mode 100644
index 0000000..0b8a052
Binary files /dev/null and b/assets/img/redmine.png differ
diff --git a/js/app.js b/js/app.js
index e2c810d..e76dfba 100644
--- a/js/app.js
+++ b/js/app.js
@@ -211,6 +211,7 @@ const TimeTrack = {
},
stopTracking(ticket) {
// console.log(ticket);
+ let component = this;
ticket.trackingStopped = moment();
ticket.tracking = false;
@@ -233,6 +234,27 @@ const TimeTrack = {
}
}
+ if (this.ticketSystemUrl && this.isTicketNumber(ticket.number)) {
+ iziToast.show({
+ message: 'Buchung gespeichert',
+ color: 'blue',
+ buttons: [
+ ['', function (instance, toast) {
+ instance.hide({
+ transitionOut: 'fadeOutUp',
+ onClosing: function(instance, toast, closedBy){
+ component.restoreTrashed();
+ }
+ }, toast, 'buttonName');
+ }, true]
+ ]
+ });
+ }
+
ticket.history.pushToBeginning(historyEntry);
}
@@ -792,6 +814,21 @@ const TimeTrack = {
fun: this.fun,
theme: this.theme
});
+ },
+ ticketSystemIcon() {
+ if (this.ticketSystemUrl) {
+ if (this.ticketSystemUrl.find('redmine')) {
+ return 'assets/img/redmine.png';
+ }
+
+ if (this.ticketSystemUrl.find('jira')) {
+ return 'assets/img/jira.png';
+ }
+
+ if (this.ticketSystemUrl.find('gitlab')) {
+ return 'assets/img/gitlab.png';
+ }
+ }
}
}
};