-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(proposal): add validation to start time #3991
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
src/components/ModalSelectDate.vue
Outdated
@@ -39,6 +40,17 @@ watch(open, () => { | |||
time.value = `${h}:${m}`; | |||
input.value = dateString; | |||
}); | |||
|
|||
watchEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay I see now, but when I enter a time in the past the input is no longer functioning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of filling the input automatically with the current time, we should let the user enter time in that past and when he clicks "Select" we should show a warning and prevent "Select"
…y/restrict-proposal-start-time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
Issues
#334
Fixes #
Set starting date not greater than the current time. Restrict users to enter lower time than the current time
How to test
To-Do
Self-review checklist
Additional notes or considerations
(Include any other relevant information or context that may be helpful for the reviewer)