-
-
-
-
-
-
- -
-
-
- {{ formattedDate(tracker.trackingStarted) }}
-
- Start:
-
-
-
- {{ formattedDate(tracker.trackingStopped) }}
-
- Ende:
-
-
-
- {{ timeWithPostFix(tracker.minutes) }}
-
- Zeit:
-
-
-
-
-
-
-
-
- -
-
-
- {{ formattedDate(tracker.trackingStarted) }}
-
- Manuell erfasst am:
-
-
-
- {{ timeWithPostFix(tracker.minutes) }}
-
- Zeit:
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ -
+
+
+ {{ formattedDate(tracker.trackingStarted) }}
+
+ Start:
+
+
+
+ {{ formattedDate(tracker.trackingStopped) }}
+
+ Ende:
+
+
+
+ {{ timeWithPostFix(tracker.minutes) }}
+
+ Zeit:
+
+
+
+
+
+
+
+
+ -
+
+
+ {{ formattedDate(tracker.trackingStarted) }}
+
+ Manuell erfasst am:
+
+
+
+ {{ timeWithPostFix(tracker.minutes) }}
+
+ Zeit:
+
+
+
+
+
+
+
+
@@ -78,10 +74,11 @@ export default {
},
deleteHistoryEntry(trackerIndex, historyIndex) {
if (trackerIndex) {
- this.trackers[trackerIndex].history.splice(historyIndex, 1);
+ this.$store.state.trackers[trackerIndex].history.splice(historyIndex, 1);
} else {
- this.selectedTracker.history.splice(historyIndex, 1);
+ this.$store.state.selectedTracker.history.splice(historyIndex, 1);
}
+
this.$store.commit('saveTrackers');
},
formattedDate(date) {
@@ -90,7 +87,7 @@ export default {
timeWithPostFix(time) {
let postFix = ' Minute';
- if (time >= 480 && this.showPT) {
+ if (time >= 480 && this.$store.state.settings.showPT) {
postFix = ' PT';
time = (time / 480).toFixed(1);
} else if (time >= 60 || this.$store.state.settings.dontShowMinutes) {
diff --git a/src/views/Menu.vue b/src/views/Menu.vue
index 50c06eb..097f7ad 100644
--- a/src/views/Menu.vue
+++ b/src/views/Menu.vue
@@ -49,7 +49,7 @@