Skip to content

Commit

Permalink
🔥 Remove some console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonastahl authored and FungOliver committed Oct 3, 2024
1 parent 087c776 commit 118abe2
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 16 deletions.
5 changes: 1 addition & 4 deletions frontend/app/src/backend/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ export function findCompPlayers(
`/player/compFind/${route.params.tourId}/${route.params.compId}`,
{ params: { search: search.value.toLowerCase(), playerB: playerB } },
)
.then<Player[]>((result) => {
console.log(result.data.map(playerServerToClient))
return result.data.map(playerServerToClient)
})
.then<Player[]>((result) => result.data.map(playerServerToClient))
.catch((error) => {
toast.add({
severity: "error",
Expand Down
1 change: 0 additions & 1 deletion frontend/app/src/components/items/SignUpDoubleDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ const { data: suggestionsPlayerB, isFetching: loadingB } = findCompPlayers(
)
function queryPlayer(playerA: boolean, event: DropdownFilterEvent) {
console.log("event.value " + event.value)
if (playerA) searchA.value = event.value
else searchB.value = event.value
}
Expand Down
3 changes: 0 additions & 3 deletions frontend/app/src/components/items/SignUpDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,10 @@ const { data: suggestionsPlayer, isFetching: loading } = findCompPlayers(
)
function queryPlayer(event: DropdownFilterEvent) {
console.log("event.value " + event.value)
search.value = event.value
}
function signUpPlayer() {
console.log(selectedPlayer.value)
console.log(props.isPlayerB)
mutateSignUpSingle({ player: selectedPlayer, playerB: props.isPlayerB })
}
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,6 @@ const { values, defineField, errors, handleSubmit } = useForm<CompetitionForm>({
: new Date(),
},
})
console.log(values)
const [name, nameAttrs] = defineField("name")
const [description, descriptionAttrs] = defineField("description")
Expand Down
10 changes: 5 additions & 5 deletions frontend/app/src/components/views/player/ViewPlayerForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
}}</label>
<InputText
id="first_name"
v-model="firstName"
:disabled="disabled"
type="text"
v-model="firstName"
v-bind="firstNameAttrs"
maxlength="40"
class="w-full"
Expand All @@ -24,9 +24,9 @@
}}</label>
<InputText
id="name"
v-model="lastName"
:disabled="disabled"
type="text"
v-model="lastName"
v-bind="lastNameAttrs"
maxlength="40"
class="w-full"
Expand All @@ -41,10 +41,10 @@
t("ViewPlayerRegistration.birthdate.field")
}}</label>
<Calendar
v-model="birthday"
show-icon
:disabled="disabled"
class="w-full"
v-model="birthday"
v-bind="birthdayAttrs"
:manual-input="false"
:date-format="t('date_format')"
Expand Down Expand Up @@ -84,9 +84,9 @@
<label for="email">{{ t("ViewPlayerRegistration.email.field") }}</label>
<InputText
id="email"
v-model="email"
:disabled="disabled"
type="text"
v-model="email"
v-bind="emailAttrs"
maxlength="100"
class="w-full"
Expand All @@ -100,9 +100,9 @@
<label for="phone">{{ t("ViewPlayerRegistration.phone.field") }}</label>
<InputText
id="phone"
v-model="phone"
:disabled="disabled"
type="text"
v-model="phone"
v-bind="phoneAttrs"
maxlength="30"
class="w-full"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<label for="name">{{ t("general.name") }}</label>
<InputText
id="name"
type="text"
v-model="name"
type="text"
v-bind="nameAttrs"
maxlength="30"
class="w-full"
Expand Down Expand Up @@ -43,11 +43,11 @@
<label for="description">{{ t("general.description") }}</label>
<Textarea
id="description"
v-model="description"
type="text"
rows="4"
maxlength="255"
class="w-full"
v-model="description"
v-bind="descriptionAttrs"
:disabled="disabled"
></Textarea>
Expand Down

0 comments on commit 118abe2

Please sign in to comment.