@@ -769,7 +769,7 @@
diff --git a/js/app.js b/js/app.js
index 2e09533..5ecb06d 100644
--- a/js/app.js
+++ b/js/app.js
@@ -151,7 +151,7 @@ const TimeTrack = {
resetToDefault() {
this.updateStorage();
},
- addTrackedTicket() {
+ createTracker() {
this.tickets.push({
tracking: false,
number: '#',
@@ -162,7 +162,7 @@ const TimeTrack = {
this.updateStorage();
},
- addTimeBox() {
+ createTimeBox() {
this.tickets.push({
tracking: false,
number: 'Timebox ',
@@ -180,7 +180,7 @@ const TimeTrack = {
},
startTracking(ticket, individual = false, timeBoxMinutes = null) {
if (!individual) {
- this.stopTrackingTicket();
+ this.stopActiveTracker();
}
if (timeBoxMinutes) {
@@ -319,7 +319,7 @@ const TimeTrack = {
return time + postFix + plural;
},
- stopTrackingTicket() {
+ stopActiveTracker() {
let vue = this;
vue.tickets.forEach(function (ticket) {
@@ -334,15 +334,15 @@ const TimeTrack = {
isTicketNumber(number) {
return number.indexOf('#') >= 0;
},
- deleteTicket(index, archive = false) {
+ deleteTracker(index, archive = false) {
let message = '';
if (archive) {
let name = this.archive[index].number;
- message = 'Ticket "' + name + '" wurde gelöscht';
+ message = 'Tracker "' + name + '" wurde gelöscht';
this.archive.splice(index, 1);
} else {
let name = this.tickets[index].number;
- message = 'Ticket "' + name + '" wurde gelöscht';
+ message = 'Tracker "' + name + '" wurde gelöscht';
this.tickets.splice(index, 1);
}
@@ -353,9 +353,9 @@ const TimeTrack = {
this.updateStorage();
},
- archiveTicket(index) {
+ archiveTracker(index) {
if (this.tickets[index].tracking) {
- this.stopTrackingTicket();
+ this.stopActiveTracker();
}
this.archive.push(this.tickets[index]);
@@ -371,7 +371,7 @@ const TimeTrack = {
if (ticketIndex) {
this.tickets[ticketIndex].history.splice(historyIndex, 1);
} else {
- this.selectedTicket.history.splice(historyIndex, 1);
+ this.selectedTracker.history.splice(historyIndex, 1);
}
this.updateStorage();
},
@@ -441,8 +441,8 @@ const TimeTrack = {
console.log(error);
});
},
- showHistoryForTicket(ticket) {
- this.selectedTicket = ticket;
+ showHistoryForTracker(ticket) {
+ this.selectedTracker = ticket;
this.$forceUpdate();
setTimeout(() => {
let historyModal = new bootstrap.Modal(document.getElementById('historyModal'));
@@ -467,7 +467,7 @@ const TimeTrack = {
color: 'green'
});
- this.bookTimeManually(this.selectedTicket, this.customBookingValue);
+ this.bookTimeManually(this.selectedTracker, this.customBookingValue);
},
getPortalLink (test = false) {
let finalPortalName = this.portal.replaceAll('_', '-');