diff --git a/src/components/Battleground/Objective.vue b/src/components/Battleground/Objective.vue index 277bda9..3409e9c 100644 --- a/src/components/Battleground/Objective.vue +++ b/src/components/Battleground/Objective.vue @@ -1,12 +1,20 @@ @@ -28,6 +36,18 @@ } }, methods: { + clearObjective: function () { + if (this.$refs.timer.currentTime === 0) { + this.resetTimer() + } + }, + forceClearObjective: function () { + this.resetTimer() + }, + resetTimer: function () { + this.$refs.timer.setTime(this.objective.respawnTime) + this.$refs.timer.startTimer() + } }, components: { Timer diff --git a/src/components/Battleground/Timer.vue b/src/components/Battleground/Timer.vue index 59193aa..b5c4334 100644 --- a/src/components/Battleground/Timer.vue +++ b/src/components/Battleground/Timer.vue @@ -5,16 +5,19 @@