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

Display decimals only for MB and higher #3051

Merged
merged 1 commit into from
Feb 19, 2020
Merged

Conversation

LukasHirt
Copy link
Collaborator

Description

Display decimals in resource size column only for MBs or higher and display only once decimal instead of two.

Related Issue

How Has This Been Tested?

  • test environment: Manually

Screenshots (if appropriate):

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@LukasHirt LukasHirt added Category:Enhancement Add new functionality Status:Needs-Review Needs review from a maintainer labels Feb 17, 2020
@LukasHirt LukasHirt requested a review from PVince81 February 17, 2020 15:32
@LukasHirt LukasHirt self-assigned this Feb 17, 2020

const mb = 1048576

// TODO: Pass current language as locale to display correct separator
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

please raise issue to address this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Filesize supports locale on its own - https://www.npmjs.com/package/filesize

This is more about figuring out a nice way to get there the locale.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Issue raised - #3067

Copy link
Contributor

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍

@LukasHirt LukasHirt merged commit e65eb8e into master Feb 19, 2020
@delete-merged-branch delete-merged-branch bot deleted the feature/size-column branch February 19, 2020 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category:Enhancement Add new functionality Status:Needs-Review Needs review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improvements for the Size column in the files view
2 participants