Mostrar nombre personalizado de juego en selector del dashboard

This commit is contained in:
Pandipipas
2026-03-03 21:52:53 +01:00
parent 2b2dd3180b
commit 097c9014f9
@@ -33,8 +33,12 @@ const rightCharacterInput = ref('');
const gameInput = ref(''); const gameInput = ref('');
const charactersByGame = ref<Record<string, { leftCharacter: string; rightCharacter: string }>>({}); const charactersByGame = ref<Record<string, { leftCharacter: string; rightCharacter: string }>>({});
const gameTitleBySlug = computed(() => new Map(
gameAssetsStore.availableGames.map((game) => [game.slug, game.title] as const),
));
const allFightingGameOptions = computed(() => gameAssetsStore.installedGames.map((game) => ({ const allFightingGameOptions = computed(() => gameAssetsStore.installedGames.map((game) => ({
label: game, label: gameTitleBySlug.value.get(game) ?? game,
value: game, value: game,
}))); })));