Skip to content

Commit

Permalink
feat(calls): allow DatePicker to display only past and today's dates (#…
Browse files Browse the repository at this point in the history
…7100)

Co-authored-by: Alexis Saettler <alexis@saettler.org>
  • Loading branch information
amansultani and asbiin committed Mar 16, 2024
1 parent 1422407 commit c099c93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/js/Shared/Modules/Calls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ const destroy = (call) => {
class="inline-block h-full"
:masks="masks"
:locale="$page.props.auth.user?.locale_ietf"
:is-dark="isDark()">
:is-dark="isDark()"
:max-date="new Date()">
<template #default="{ inputValue, inputEvents }">
<input
class="rounded border bg-white px-2 py-1 dark:bg-gray-900"
Expand Down Expand Up @@ -472,7 +473,8 @@ const destroy = (call) => {
v-model.string="form.called_at"
class="inline-block h-full"
:masks="masks"
:is-dark="isDark()">
:is-dark="isDark()"
:max-date="new Date()">
<template #default="{ inputValue, inputEvents }">
<input
class="rounded border bg-white px-2 py-1 dark:bg-gray-900"
Expand Down

0 comments on commit c099c93

Please sign in to comment.