+
+
-
-
-
Apps
-
- {{ app.characterName }}
-
+
@@ -43,8 +62,15 @@
}
.result-box {
- margin: 10px;
- margin-top: 40px;
+ margin: 20px;
+ margin-top: 20px;
+}
+
+.character-list {
+ margin: 20px;
+ h3 {
+ margin-bottom: 10px;
+ }
}
@@ -55,10 +81,24 @@ import axios from 'axios'
const route = useRoute()
+const pickHeaders = [
+ { title: 'ID', align: 'start', key: 'characterId' },
+ { title: 'Character', align: 'start', key: 'characterName' },
+ { title: 'Status', align: 'start', key: 'pickedCharacter.status' },
+ { title: 'Player', align: 'start', key: 'pickedCharacter.playerName' }
+]
+
+const appHeaders = [
+ { title: 'ID', align: 'start', key: 'characterId' },
+ { title: 'Character', align: 'start', key: 'characterName' },
+ { title: 'Status', align: 'start', key: 'appliedCharacter.status' },
+ { title: 'Player', align: 'start', key: 'appliedCharacter.playerName' }
+]
+
const gameId = ref(route.params.gameId)
const game = ref({})
-const picks = ref({})
-const apps = ref({})
+const picks = ref([])
+const apps = ref([])
loadGameDetails()
@@ -85,5 +125,6 @@ async function loadPicks() {
async function loadApps() {
const response = await axios.post(`/api/game/${gameId.value}/apps`)
apps.value = response.data
+ console.log(apps.value)
}
diff --git a/frontend/src/vues/GameList.vue b/frontend/src/vues/GameList.vue
index 3851f34..f08145a 100644
--- a/frontend/src/vues/GameList.vue
+++ b/frontend/src/vues/GameList.vue
@@ -6,7 +6,30 @@
v-model="filtervalue"
>