From 754a8b497c56d263e428803468baf8135354077f Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Wed, 15 Jan 2020 20:07:26 +0100 Subject: [PATCH] feat: highlight search summoner in live game tab --- client/src/components/Summoner/Live/LiveTeam.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/client/src/components/Summoner/Live/LiveTeam.vue b/client/src/components/Summoner/Live/LiveTeam.vue index f5ef22e..2e685e0 100644 --- a/client/src/components/Summoner/Live/LiveTeam.vue +++ b/client/src/components/Summoner/Live/LiveTeam.vue @@ -40,7 +40,7 @@
@@ -57,7 +57,8 @@ {{ player.summonerName }}
Level {{ player.level }}
@@ -193,6 +194,7 @@ export default { computed: { ...mapState({ + account: state => state.summoner.basic.account, live: state => state.summoner.live.match, liveLoaded: state => state.summoner.live.liveLoaded, }) @@ -207,6 +209,13 @@ export default { } return this.live.bannedChampions.find(b => b.pickTurn === index) }, + borderChampion(id) { + if (id === this.account.id) { + return 'border-yellow-500' + } + + return this.ally ? 'border-teal-400' : 'border-red-400' + }, getSummonerLink, } }