mirror of
https://github.com/Pandipipas/scoreko-dev.git
synced 2026-06-06 03:32:06 +00:00
Fixear visualización de nombre custom en selector de jugador
This commit is contained in:
@@ -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 = '';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user