From ee81d29fce2ac9c3a08f72e1090e0168ba5ab973 Mon Sep 17 00:00:00 2001 From: Adrien Agez Date: Sat, 27 Jun 2020 21:16:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7:=20add=20objectives=20informations?= =?UTF-8?q?=20and=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Battleground.vue | 35 +++++++++++++++++++---- src/components/Battleground/Objective.vue | 27 +++++++++-------- src/components/Battleground/Timer.vue | 5 +++- src/components/BattlegroundSelector.vue | 2 +- 4 files changed, 50 insertions(+), 19 deletions(-) diff --git a/src/components/Battleground.vue b/src/components/Battleground.vue index e2d8340..dadcad7 100644 --- a/src/components/Battleground.vue +++ b/src/components/Battleground.vue @@ -1,16 +1,44 @@ + + - diff --git a/src/components/Battleground/Objective.vue b/src/components/Battleground/Objective.vue index c4be8e4..277bda9 100644 --- a/src/components/Battleground/Objective.vue +++ b/src/components/Battleground/Objective.vue @@ -1,23 +1,30 @@ + + - - diff --git a/src/components/Battleground/Timer.vue b/src/components/Battleground/Timer.vue index 4dbcbf9..59193aa 100644 --- a/src/components/Battleground/Timer.vue +++ b/src/components/Battleground/Timer.vue @@ -30,7 +30,10 @@ return (this.currentTime % 60).toLocaleString('en', {minimumIntegerDigits: 2}) }, minutes: function () { - return (Math.floor(this.currentTime / 60) % 60) + let minutes = Math.floor(this.currentTime / 60) % 60 + return this.displayHours > 0 + ? minutes.toLocaleString('en', {minimumIntegerDigits: 2}) + : minutes }, hours: function () { return (Math.floor(this.currentTime / 3600) % 24) diff --git a/src/components/BattlegroundSelector.vue b/src/components/BattlegroundSelector.vue index c14958c..a396a70 100644 --- a/src/components/BattlegroundSelector.vue +++ b/src/components/BattlegroundSelector.vue @@ -12,7 +12,7 @@