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

Rework storage page to show sizes with relevant units #5093

Merged
merged 2 commits into from
Jan 15, 2023

Conversation

sinamics
Copy link
Contributor

Resolves #5069.
This pull request adds a new function getUnitSize that takes a value in MegaByte and returns a string with the appropriate unit (MB or GB) based on the input value.

Examples:

getUnitSize(512) => "512 MB"
getUnitSize(2048) => "2.00 GB"

@netlify
Copy link

netlify bot commented Jan 14, 2023

Deploy Preview for frigate-docs canceled.

Name Link
🔨 Latest commit c69e1b2
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/63c410d22fefa30009942997

@NickM-27 NickM-27 changed the title Add getUnitSize function Rework storage page to show sizes with relevant unit Jan 14, 2023
@NickM-27 NickM-27 changed the title Rework storage page to show sizes with relevant unit Rework storage page to show sizes with relevant units Jan 14, 2023
@blakeblackshear blakeblackshear merged commit 65bc644 into blakeblackshear:dev Jan 15, 2023
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.

0.12.0-0DBF909 - Change "Storage" sizes shown under storage menu to GB
3 participants