Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nomad-FAIR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nomad-lab
nomad-FAIR
Commits
8d5a3314
Commit
8d5a3314
authored
1 year ago
by
Lauri Himanen
Browse files
Options
Downloads
Patches
Plain Diff
Added comment on unit abbreviation.
parent
48b88ad6
No related branches found
No related tags found
1 merge request
!2386
Resolve "Add unit support for percentages"
Pipeline
#243872
failed
2 months ago
Stage: build
Stage: test
Stage: deploy
Stage: release
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gui/src/components/units/Unit.js
+1
-0
1 addition, 0 deletions
gui/src/components/units/Unit.js
with
1 addition
and
0 deletions
gui/src/components/units/Unit.js
+
1
−
0
View file @
8d5a3314
...
...
@@ -84,6 +84,7 @@ export class Unit {
let
nDen
=
0
function
getName
(
unit
)
{
// For now, we forcibly abbreviate the base dimensionless unit
if
(
unit
.
name
===
DIMENSIONLESS
)
return
''
return
abbreviate
?
unitToAbbreviationMap
?.[
unit
.
name
]
||
unit
.
name
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment