diff --git a/index.html b/index.html
index e4794d3..f334a9c 100644
--- a/index.html
+++ b/index.html
@@ -267,30 +267,42 @@
Gesamtzeit: {{ getTotalTime(ticket) }}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/js/app.js b/js/app.js
index 116bf6b..c58c50d 100644
--- a/js/app.js
+++ b/js/app.js
@@ -5,7 +5,8 @@ const TimeTrack = {
trackWorktime: false,
boardView: false,
snippetSpace: false,
- portalSwitcher: true
+ portalSwitcher: true,
+ customManualBooking: true
},
view: 'board',
theme: 'materia',
@@ -49,7 +50,8 @@ const TimeTrack = {
]
},
snippets: [],
- codeMirrors: []
+ codeMirrors: [],
+ customBookingValue: '',
}
},
mounted() {
@@ -404,6 +406,26 @@ const TimeTrack = {
historyModal.toggle();
}, 50);
},
+ showCustomBookingForTicket(ticket) {
+ this.selectedTicket = ticket;
+ this.$forceUpdate();
+ setTimeout(() => {
+ let customBookingModal = new bootstrap.Modal(document.getElementById('customBookingModal'));
+ customBookingModal.toggle();
+ }, 50);
+ },
+ makeCustomBooking(subtract = false) {
+ if (subtract) {
+ this.customBookingValue -= (this.customBookingValue * 2)
+ }
+
+ iziToast.show({
+ message: 'Buchung erfolgreich',
+ color: 'green'
+ });
+
+ this.bookTimeManually(this.selectedTicket, this.customBookingValue);
+ },
getPortalLink (test = false) {
let finalPortalName = this.portal.replaceAll('_', '-');
finalPortalName.replaceAll('-test', '');