From cb3997529d5c560a82e8d5a56bfce9303e212650 Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Sun, 8 Dec 2019 00:26:04 +0100 Subject: [PATCH] feat: add series score if the summoner is in BO --- .../components/Summoner/SummonerRanked.vue | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/client/src/components/Summoner/SummonerRanked.vue b/client/src/components/Summoner/SummonerRanked.vue index a366005..f0db0ac 100644 --- a/client/src/components/Summoner/SummonerRanked.vue +++ b/client/src/components/Summoner/SummonerRanked.vue @@ -18,6 +18,14 @@ class="ml-2 text-teal-500 text-3xl uppercase font-extrabold" >{{ selectedLeague.fullRank }}
{{ selectedLeague.leaguePoints }} LP
+
+
+
@@ -85,6 +93,9 @@ export default { }, computed: { + bo() { + return this.selectedLeague.miniSeries.progress.split('') + }, colorBorder() { if (!this.selectedLeague.tier || this.selectedLeague.leaguePoints === 0) { return '#2c5282' @@ -122,6 +133,16 @@ export default { this.triggerAnimation() }, + boGame(result) { + switch (result) { + case 'W': + return 'bg-green-400' + case 'L': + return 'bg-red-400' + default: + return 'bg-blue-200' + } + }, triggerAnimation() { setTimeout(() => { if (this.currentDegree < 360 && this.currentDegree < this.leagueDegrees)