Skip to content
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

Implement show remaining #176

Merged
merged 4 commits into from
Jun 7, 2024
Merged

Implement show remaining #176

merged 4 commits into from
Jun 7, 2024

Conversation

selankon
Copy link
Collaborator

@selankon selankon commented Jun 5, 2024

If true, it return the remaining time to start, end, if ended or paused, instead of the full schedule

Copy link
Collaborator Author

@selankon selankon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After a talk with @elboletaire we decided to do some changes:

  • First of all, modify the "ended" string to show how many time ago is ended, and add a translation like return t('status.ended', { date: formatDistance(...)})
  • For paused elections the same, but taking that if is not started will show difference with start, if already started show when it ends.

@elboletaire elboletaire merged commit c12688a into main Jun 7, 2024
1 check passed
@elboletaire elboletaire deleted the f/implement-show-remaining branch June 7, 2024 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants