diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-01-02 21:06:06 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-01-02 21:06:06 +0000 |
commit | 6db6856d8dee1810a25f1a4c5a665329c5ad598b (patch) | |
tree | f8b12c884b42deb3254873ec5c9c0580fb95bac2 /app/assets/javascripts/job.js | |
parent | 7c636732fba98935922ffaadc49b328417e9036c (diff) | |
parent | 2cbb2d0eceaed0f31c92d4eed8932e98f4f74559 (diff) | |
download | gitlab-ce-6db6856d8dee1810a25f1a4c5a665329c5ad598b.tar.gz |
Merge branch 'master' into 41120-performance-bar-auto-scroll
* master: (120 commits)
Update CHANGELOG.md for 10.3.3
Fix user membership destroy relation
Use heredoc so it's more clear
Put all menus under menu module
Introduce common project settings and just put
Introduce Factory::Resource::DeployKey
Introduce expand_deploy_keys
Introduce Menu::Side
Add documents for GitLab utilities
Clears visual token on second backspace
Update prometheus gem to version that adds inf+ bucket in accordance with Prometheus docs.
Add breadcrumbs to User Settings sub-views
Rename asset sync related AWS variables
Allow logged in user to change his password
Fix 404 error after a user edits an issue description and solves the reCAPTCHA
Fix links to old commits in merge requests
Typos correction on the advise of @smcgivern
Documenting that resolved JIRA tickets are not automatically transitioned
Forking a project to a namespace with lower visibility.
Keep typographic hierarchy in User Settings
...
Diffstat (limited to 'app/assets/javascripts/job.js')
-rw-r--r-- | app/assets/javascripts/job.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/job.js b/app/assets/javascripts/job.js index e1b2506e437..f94b0fdbb5e 100644 --- a/app/assets/javascripts/job.js +++ b/app/assets/javascripts/job.js @@ -1,7 +1,7 @@ import _ from 'underscore'; import { visitUrl } from './lib/utils/url_utility'; import bp from './breakpoints'; -import { bytesToKiB } from './lib/utils/number_utils'; +import { numberToHumanSize } from './lib/utils/number_utils'; import { setCiStatusFavicon } from './lib/utils/common_utils'; import { timeFor } from './lib/utils/datetime_utility'; @@ -197,7 +197,7 @@ export default class Job { // we need to show a message warning the user about that. if (this.logBytes < log.total) { // size is in bytes, we need to calculate KiB - const size = bytesToKiB(this.logBytes); + const size = numberToHumanSize(this.logBytes); $('.js-truncated-info-size').html(`${size}`); this.$truncatedInfo.removeClass('hidden'); } else { |