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

feat: render "active time" in torrent info tab #537

Merged
merged 1 commit into from Nov 14, 2022

Conversation

invakid404
Copy link
Contributor

@invakid404 invakid404 commented Nov 10, 2022

Render "active time" in torrent info tab [feat]

This PR adds an extra row to the "info" torrent details tab to render "time active".

I used dayjs for formatting durations, which isn't ideal, as there's no way to skip zero values, but it works and is a good starting point (thought it's preferrable over installing yet another library for duration formatting or making my own utility).

I used the original QBit Web UI as a reference for the "time active" column and made it contain "seeding time" as well if it's greater than 0.

PR Checklist

  • I've started from master
  • I've only committed changes related to this PR
  • All Unit tests pass
  • I've removed all commented code
  • I've removed all unneeded console.log statements

@WDaan
Copy link
Collaborator

WDaan commented Nov 11, 2022

Awesome! Seems great ;)

Maybe this can also be added as a column in the dashboard card.

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.

None yet

2 participants