Display Game/Groups in Dropdown Title
This commit is contained in:
parent
f801c96ddf
commit
ab6ff1c994
2 changed files with 3 additions and 4 deletions
|
@ -16,7 +16,6 @@
|
||||||
ethics: [],
|
ethics: [],
|
||||||
portraits: []
|
portraits: []
|
||||||
};
|
};
|
||||||
let store: string | null;
|
|
||||||
|
|
||||||
// Chellaris Data Code
|
// Chellaris Data Code
|
||||||
const updateGameGroups = () => {
|
const updateGameGroups = () => {
|
||||||
|
@ -33,7 +32,7 @@
|
||||||
gameGroups = tmpData.groups;
|
gameGroups = tmpData.groups;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ChellarisDataStore.subscribe((data) => {
|
ChellarisDataStore.subscribe((data) => {
|
||||||
chellarisData = data;
|
chellarisData = data;
|
||||||
|
|
||||||
|
@ -79,7 +78,7 @@
|
||||||
const dropdownId = crypto.randomUUID();
|
const dropdownId = crypto.randomUUID();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<DropDown {dropdownId} dropdownTitle="Group Selection">
|
<DropDown {dropdownId} dropdownTitle={(selectedGameGroups.length > 1 ? "Groups " : "Group ") + selectedGameGroups.map((selection) => gameGroups.get(selection)?.name).join(", ")}>
|
||||||
{#each gameGroups as group}
|
{#each gameGroups as group}
|
||||||
<DropDownElement {dropdownId}>
|
<DropDownElement {dropdownId}>
|
||||||
<input
|
<input
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
const dropdownId = crypto.randomUUID();
|
const dropdownId = crypto.randomUUID();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<DropDown {dropdownId} dropdownTitle="Game Selection">
|
<DropDown {dropdownId} dropdownTitle={gameList.get(selectedGame)?.name}>
|
||||||
{#each gameList as game}
|
{#each gameList as game}
|
||||||
<DropDownElement {dropdownId}>
|
<DropDownElement {dropdownId}>
|
||||||
<input
|
<input
|
||||||
|
|
Reference in a new issue