mirror of
https://github.com/Pandipipas/scoreko-dev.git
synced 2026-06-06 03:32:06 +00:00
Mostrar nombre personalizado de juego en selector del dashboard
This commit is contained in:
@@ -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,
|
||||||
})));
|
})));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user