mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix: recent search / favorites system with taglines
This commit is contained in:
parent
3211b015b4
commit
9cd32aa477
3 changed files with 6 additions and 3 deletions
|
|
@ -69,7 +69,7 @@
|
|||
<SearchFormDropdownPlayer
|
||||
@close="close"
|
||||
@mousemove.native="onHover(1)"
|
||||
:player="{ name: 'KC NEXT ADKING', icon: 29, region: 'euw' }"
|
||||
:player="{ name: 'KC NEXT ADKING#EUW', icon: 29, region: 'euw' }"
|
||||
:selected="selected === 1"
|
||||
:favorites-list="false"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
<template>
|
||||
<router-link
|
||||
@click.native="close"
|
||||
:to="{ name: 'summoner', params: { region: player.region, name: player.name } }"
|
||||
:to="{
|
||||
name: 'summoner',
|
||||
params: { region: player.region, name: player.name.replaceAll('#', '-') },
|
||||
}"
|
||||
:title="player.name"
|
||||
:class="selected ? 'bg-blue-760' : 'bg-blue-900'"
|
||||
class="bypass-click mt-1 flex w-full cursor-pointer select-none items-center justify-between rounded-md px-4 py-3 text-blue-200 shadow-md"
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ export const actions = {
|
|||
dispatch(
|
||||
'settings/addRecentSearch',
|
||||
{
|
||||
name: infos.account.name,
|
||||
name: infos.account.name + '#' + infos.account.tagLine,
|
||||
icon: infos.account.profileIconId,
|
||||
region,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue