Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
250c2eaf
Commit
250c2eaf
authored
4 years ago
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3925: UI: Properties with value 0 or false are displayed as N/A for
parent
813bab64
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
CommonViewFunction.js
dashboardv2/public/js/utils/CommonViewFunction.js
+1
-2
CommonViewFunction.js
dashboardv3/public/js/utils/CommonViewFunction.js
+1
-1
No files found.
dashboardv2/public/js/utils/CommonViewFunction.js
View file @
250c2eaf
...
...
@@ -102,7 +102,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
}
},
getValue
=
function
(
val
)
{
if
(
val
)
{
if
(
!
_
.
isUndefined
(
val
)
)
{
if
((
_
.
isNumber
(
val
)
||
!
_
.
isNaN
(
parseInt
(
val
)))
&&
formatIntVal
)
{
return
numberFormat
(
val
);
}
else
{
...
...
@@ -612,7 +612,6 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
rule
=
{};
if
(
apiObj
)
{
rule
=
{
attributeName
:
temp
[
0
],
operator
:
mapUiOperatorToAPI
(
temp
[
1
]),
attributeValue
:
_
.
trim
(
temp
[
2
])
}
rule
.
attributeValue
=
rule
.
type
===
'date'
&&
formatDate
&&
rule
.
attributeValue
.
length
?
moment
(
parseInt
(
rule
.
attributeValue
)).
format
(
Globals
.
dateTimeFormat
)
:
rule
.
attributeValue
;
}
else
{
rule
=
{
id
:
temp
[
0
],
operator
:
temp
[
1
],
value
:
_
.
trim
(
temp
[
2
])
}
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/utils/CommonViewFunction.js
View file @
250c2eaf
...
...
@@ -102,7 +102,7 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
}
},
getValue
=
function
(
val
)
{
if
(
val
)
{
if
(
!
_
.
isUndefined
(
val
)
)
{
if
((
_
.
isNumber
(
val
)
||
!
_
.
isNaN
(
parseInt
(
val
)))
&&
formatIntVal
)
{
return
numberFormat
(
val
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
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