diff --git a/src/components/2 b/src/components/2 new file mode 100644 index 0000000..1857c1f --- /dev/null +++ b/src/components/2 @@ -0,0 +1,80 @@ + + + + + Timer + Start Timer + Stop Timer + Reset + + Description + + + Seconds + + + Comments + + + Practice Category + + + {{category.id}}. + {{category.instrument}} + : + {{category.category}} + + + + + + + + + diff --git a/src/components/timer.vue b/src/components/timer.vue index 7e1557f..ac440eb 100644 --- a/src/components/timer.vue +++ b/src/components/timer.vue @@ -29,6 +29,9 @@ stop(event){ this.running = false; this.savedPreviousSeconds += getAccumulatedSeconds(Date.now(), this.startTime); + }, + reset(event){ + this.savedPreviousSeconds = 0; } }, mounted() { @@ -44,6 +47,7 @@ Timer Start Timer Stop Timer + Reset