Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
31d35a68
Commit
31d35a68
authored
Jan 09, 2019
by
Peter Holmberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename
parent
13e6d2c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
packages/grafana-ui/src/utils/ValueFormats/valueFormats.ts
+5
-5
No files found.
packages/grafana-ui/src/utils/ValueFormats/valueFormats.ts
View file @
31d35a68
...
@@ -20,7 +20,7 @@ interface ValueFormatterIndex {
...
@@ -20,7 +20,7 @@ interface ValueFormatterIndex {
// Globals & formats cache
// Globals & formats cache
let
categories
:
ValueFormatCategory
[]
=
[];
let
categories
:
ValueFormatCategory
[]
=
[];
const
index
:
ValueFormatterIndex
=
{};
const
index
:
ValueFormatterIndex
=
{};
let
hasBuil
d
Index
=
false
;
let
hasBuil
t
Index
=
false
;
export
function
toFixed
(
value
:
number
,
decimals
?:
number
):
string
{
export
function
toFixed
(
value
:
number
,
decimals
?:
number
):
string
{
if
(
value
===
null
)
{
if
(
value
===
null
)
{
...
@@ -128,11 +128,11 @@ function buildFormats() {
...
@@ -128,11 +128,11 @@ function buildFormats() {
}
}
}
}
hasBuil
d
Index
=
true
;
hasBuil
t
Index
=
true
;
}
}
export
function
getValueFormat
(
id
:
string
):
ValueFormatter
{
export
function
getValueFormat
(
id
:
string
):
ValueFormatter
{
if
(
!
hasBuil
d
Index
)
{
if
(
!
hasBuil
t
Index
)
{
buildFormats
();
buildFormats
();
}
}
...
@@ -140,7 +140,7 @@ export function getValueFormat(id: string): ValueFormatter {
...
@@ -140,7 +140,7 @@ export function getValueFormat(id: string): ValueFormatter {
}
}
export
function
getValueFormatterIndex
():
ValueFormatterIndex
{
export
function
getValueFormatterIndex
():
ValueFormatterIndex
{
if
(
!
hasBuil
d
Index
)
{
if
(
!
hasBuil
t
Index
)
{
buildFormats
();
buildFormats
();
}
}
...
@@ -148,7 +148,7 @@ export function getValueFormatterIndex(): ValueFormatterIndex {
...
@@ -148,7 +148,7 @@ export function getValueFormatterIndex(): ValueFormatterIndex {
}
}
export
function
getUnitFormats
()
{
export
function
getUnitFormats
()
{
if
(
!
hasBuil
d
Index
)
{
if
(
!
hasBuil
t
Index
)
{
buildFormats
();
buildFormats
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment