From 939d2ad5ce466c4c9150b1d1555c994c8286ca51 Mon Sep 17 00:00:00 2001 From: 28holladay Date: Mon, 13 Jan 2025 14:58:23 -0500 Subject: [PATCH 1/2] commit for saftey --- pages/matches.vue | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/pages/matches.vue b/pages/matches.vue index bb65549..db65153 100644 --- a/pages/matches.vue +++ b/pages/matches.vue @@ -116,15 +116,45 @@ async function setup() { color="yellow" label="Notes" variant="soft" + @click="console.dir(row.value.promptedNotes[0])" /> From ac8efd3586f52deaa1f5423c88f6bac199a80dc1 Mon Sep 17 00:00:00 2001 From: 28holladay Date: Tue, 14 Jan 2025 16:56:24 -0500 Subject: [PATCH 2/2] matches page now updated to display all notes --- .../scouting-components/PromptedNote.vue | 6 +++ pages/matches.vue | 42 ++++++------------- pages/scout.vue | 14 +++---- 3 files changed, 25 insertions(+), 37 deletions(-) diff --git a/components/scouting-components/PromptedNote.vue b/components/scouting-components/PromptedNote.vue index dbcf8bc..b20bbc0 100644 --- a/components/scouting-components/PromptedNote.vue +++ b/components/scouting-components/PromptedNote.vue @@ -9,6 +9,12 @@ const props = defineProps<{ const value = computed({ get() { + for (let i in props.modelValue.notes){ + if (props.modelValue.notes[i] == undefined) { + console.log("ran update") + props.modelValue.notes[i] = "" + } + } return props.modelValue; }, set(value) { diff --git a/pages/matches.vue b/pages/matches.vue index db65153..421456c 100644 --- a/pages/matches.vue +++ b/pages/matches.vue @@ -96,6 +96,8 @@ async function setup() { console.log(matches); items = matches; } + +let promptedNoteTitles = ["Coral", "Algae", "Driver"] diff --git a/pages/scout.vue b/pages/scout.vue index 067ab40..215c2b1 100644 --- a/pages/scout.vue +++ b/pages/scout.vue @@ -416,20 +416,20 @@ async function submit() { open-icon="i-heroicons-plus" close-icon="i-heroicons-minus" :items="[ - { label: 'Defense', slot: 'defense', defaultOpen: true }, - { label: 'Offense', slot: 'offense' }, + { label: 'Coral', slot: 'coral', defaultOpen: true }, + { label: 'Algae', slot: 'algae' }, { label: 'Driver', slot: 'driver' }, ]" > -