-
Notifications
You must be signed in to change notification settings - Fork 32
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
Implemented: predefined and custom option for selecting job run time (#85zrxc0xf) #449
Conversation
…edefined (#85zrxc0xf)
src/components/JobConfiguration.vue
Outdated
updateRunTime(event: CustomEvent) { | ||
const value = event.detail.value | ||
if (value != 'CUSTOM') { | ||
// check for the first 5, predefined options |
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.
Update comment, why we have done this?
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.
Updated sir
src/components/JobConfiguration.vue
Outdated
const value = event.detail.value | ||
if (value != 'CUSTOM') { | ||
// checking if a predefined option is selected i.e the first five options | ||
const isPrefinedValue = this.runTimeOptions.slice(0, 5).some((option: any) => option.value === value) |
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.
const isPrefinedValue = this.runTimeOptions.slice(0, 5).some((option: any) => option.value === value) | |
const isPredefinedValue = this.runTimeOptions.slice(0, 5).some((option: any) => option.value === value) |
src/components/JobConfiguration.vue
Outdated
}, | ||
// value denotes the time in milliseconds for that label | ||
runTimeOptions: () => [{ | ||
"value": 0, |
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.
I think due to this time will be passed to server resulting in schedule failure
src/components/JobConfiguration.vue
Outdated
value: setTime, | ||
type: 'CUSTOM' | ||
} | ||
} else { |
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.
I think custom option will remain selected in this case
…improved code (#85zrxc0xf)
…time for all config components (#85zrxc0xf)
Related Issues
Closes #430
Short Description and Why It's Useful
Screenshots of Visual Changes before/after (If There Are Any)
Screencast.from.24-04-23.03.35.32.PM.IST.webm
IMPORTANT NOTICE - Remember to add changelog entry
Contribution and Currently Important Rules Acceptance