Skip to content

Commit

Permalink
Merge pull request #1076 from NFDI4Chem/issue-#1067
Browse files Browse the repository at this point in the history
fix: disable selection of past dates.
  • Loading branch information
CS76 committed Apr 4, 2024
2 parents 89a58a6 + 892a331 commit d0b40df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/js/Pages/Announcement/Partials/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
</label>
<Datepicker
v-model="createAnnouncementForm.start_time"
:min-date="new Date()"
></Datepicker>
<jet-input-error
:message="createAnnouncementForm.errors.start_time"
Expand Down
1 change: 1 addition & 0 deletions resources/js/Pages/Announcement/Partials/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
</label>
<Datepicker
v-model="editAnnouncementForm.start_time"
:min-date="new Date()"
></Datepicker>
<jet-input-error
:message="editAnnouncementForm.errors.start_time"
Expand Down
1 change: 1 addition & 0 deletions resources/js/Pages/Publish.vue
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@
<Datepicker
v-model="publishForm.release_date"
@update:modelValue="updateProject"
:min-date="new Date()"
></Datepicker>
<p class="mt-1 text-sm text-gray-500">
Publish your data now immediately or set a
Expand Down

0 comments on commit d0b40df

Please sign in to comment.