Fixear visualización de nombre custom en selector de jugador

This commit is contained in:
Pandipipas
2026-02-11 01:34:08 +01:00
parent d5b08ef4ee
commit e08c1b9a1c
@@ -8,6 +8,9 @@ import { useScoreboardStore } from '../stores/scoreboard';
const playersStore = usePlayersStore(); const playersStore = usePlayersStore();
const scoreboardStore = useScoreboardStore(); const scoreboardStore = useScoreboardStore();
const CUSTOM_LEFT_PLAYER_ID = '__custom_left_player__';
const CUSTOM_RIGHT_PLAYER_ID = '__custom_right_player__';
const leftFilter = ref(''); const leftFilter = ref('');
const rightFilter = ref(''); const rightFilter = ref('');
const leftInput = ref(''); const leftInput = ref('');
@@ -137,13 +140,13 @@ const rightPlayerOptions = computed(() => filterOptions(playerOptions.value, rig
const startLeftCustomPlayer = () => { const startLeftCustomPlayer = () => {
scoreboardStore.scoreboard.leftPlayerId = ''; scoreboardStore.scoreboard.leftPlayerId = CUSTOM_LEFT_PLAYER_ID;
scoreboardStore.scoreboard.leftTeamOverride = ''; scoreboardStore.scoreboard.leftTeamOverride = '';
scoreboardStore.scoreboard.leftCountryOverride = ''; scoreboardStore.scoreboard.leftCountryOverride = '';
}; };
const startRightCustomPlayer = () => { const startRightCustomPlayer = () => {
scoreboardStore.scoreboard.rightPlayerId = ''; scoreboardStore.scoreboard.rightPlayerId = CUSTOM_RIGHT_PLAYER_ID;
scoreboardStore.scoreboard.rightTeamOverride = ''; scoreboardStore.scoreboard.rightTeamOverride = '';
scoreboardStore.scoreboard.rightCountryOverride = ''; scoreboardStore.scoreboard.rightCountryOverride = '';
}; };