Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
fix(consultation): hide time field if urgent
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Dec 9, 2022
1 parent f136623 commit 7cb5072
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/consultation/helpers/scheduler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</div>

<div
v-if="chosenDay"
v-if="mustShowTimeField"
class="time-field"
:class="hasSelectableTimes ? 'required' : ''">
<SelectableOptionsField
Expand Down Expand Up @@ -208,6 +208,7 @@ const chosenDate = computed<string>({
const isCustomDate = computed<boolean>(() => chosenDate.value === CUSTOM_DAY)
const customDate = ref("")
const mustShowTimeField = computed(() => props.chosenDay && !props.isUrgent)
const chosenTime = computed({
get() { return props.chosenTime },
set(newValue: string) { emit("update:chosenTime", newValue) }
Expand Down

0 comments on commit 7cb5072

Please sign in to comment.