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(ui): add countdown to cronWorkflowList Closes #4636 #4641
Conversation
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.
Minor comments
ui/src/app/cron-workflows/components/cron-workflow-list/cron-workflow-list.tsx
Outdated
Show resolved
Hide resolved
ui/src/app/cron-workflows/components/cron-workflow-list/cron-workflow-list.tsx
Outdated
Show resolved
Hide resolved
|
||
const duration = moment.duration(moment(date).diff(now)).asSeconds(); | ||
|
||
return <>{formatDuration(duration)}</>; |
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.
could you use for 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.
Sorry, I don't quite understand the comment,
would you mind providing me more detail
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 is a component called that I think does 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.
There's <Moment duration={now} date={date} />
.
I thought we want to keep the formatting the same, thus using formatDuration
c6a0464
to
9097e17
Compare
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
…kage to 1.0.0 react-moment@1.0.0 fixed duration formatting bug, headzoo/react-moment#114 Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
Signed-off-by: Tianchu Zhao evantczhao@gmail.com
Checklist:
Closes #4636