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
97209e81
Commit
97209e81
authored
8 years ago
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1714 : UI : Properties tab doesn't load when an entity has attribute of…
ATLAS-1714 : UI : Properties tab doesn't load when an entity has attribute of type array of integers
parent
8cc5e510
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
15 deletions
+20
-15
CommonViewFunction.js
dashboardv2/public/js/utils/CommonViewFunction.js
+20
-15
No files found.
dashboardv2/public/js/utils/CommonViewFunction.js
View file @
97209e81
...
@@ -145,7 +145,8 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
...
@@ -145,7 +145,8 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
inputOutputField
[
'attributes'
]
=
inputOutputField
.
values
;
inputOutputField
[
'attributes'
]
=
inputOutputField
.
values
;
}
}
if
(
_
.
isString
(
inputOutputField
)
||
_
.
isBoolean
(
inputOutputField
)
||
_
.
isNumber
(
inputOutputField
))
{
if
(
_
.
isString
(
inputOutputField
)
||
_
.
isBoolean
(
inputOutputField
)
||
_
.
isNumber
(
inputOutputField
))
{
if
(
inputOutputField
.
indexOf
(
"$"
)
==
-
1
)
{
var
tempVarfor$check
=
inputOutputField
.
toString
();
if
(
tempVarfor$check
.
indexOf
(
"$"
)
==
-
1
)
{
valueOfArray
.
push
(
'<span>'
+
_
.
escape
(
inputOutputField
)
+
'</span>'
);
valueOfArray
.
push
(
'<span>'
+
_
.
escape
(
inputOutputField
)
+
'</span>'
);
}
}
}
else
if
(
_
.
isObject
(
inputOutputField
)
&&
!
id
)
{
}
else
if
(
_
.
isObject
(
inputOutputField
)
&&
!
id
)
{
...
@@ -157,8 +158,9 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
...
@@ -157,8 +158,9 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
}
}
}
}
_
.
each
(
attributesList
,
function
(
objValue
,
objKey
)
{
_
.
each
(
attributesList
,
function
(
objValue
,
objKey
)
{
var
value
=
objValue
;
var
value
=
objValue
,
if
(
objKey
.
indexOf
(
"$"
)
==
-
1
)
{
tempVarfor$check
=
objKey
.
toString
();
if
(
tempVarfor$check
.
indexOf
(
"$"
)
==
-
1
)
{
if
(
_
.
isObject
(
value
))
{
if
(
_
.
isObject
(
value
))
{
value
=
JSON
.
stringify
(
value
);
value
=
JSON
.
stringify
(
value
);
}
}
...
@@ -204,21 +206,24 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
...
@@ -204,21 +206,24 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
table
+=
'<tr><td>'
+
_
.
escape
(
key
)
+
'</td><td>'
+
subLink
+
'</td></tr>'
;
table
+=
'<tr><td>'
+
_
.
escape
(
key
)
+
'</td><td>'
+
subLink
+
'</td></tr>'
;
}
}
}
else
{
}
else
{
if
(
key
.
indexOf
(
"Time"
)
!==
-
1
||
key
==
"retention"
)
{
var
tempVarfor$check
=
key
.
toString
();
if
(
searchTable
)
{
if
(
tempVarfor$check
.
indexOf
(
"$"
)
==
-
1
)
{
table
=
new
Date
(
valueObject
[
key
]);
if
(
key
.
indexOf
(
"Time"
)
!==
-
1
||
key
==
"retention"
)
{
}
else
{
if
(
searchTable
)
{
table
+=
'<tr><td>'
+
_
.
escape
(
key
)
+
'</td><td>'
+
new
Date
(
valueObject
[
key
])
+
'</td></tr>'
;
table
=
new
Date
(
valueObject
[
key
]);
}
}
else
{
if
(
searchTable
)
{
if
(
_
.
isBoolean
(
valueObject
[
key
]))
{
table
=
valueObject
[
key
].
toString
();
}
else
{
}
else
{
table
=
valueObject
[
key
]
;
table
+=
'<tr><td>'
+
_
.
escape
(
key
)
+
'</td><td>'
+
new
Date
(
valueObject
[
key
])
+
'</td></tr>'
;
}
}
}
else
{
}
else
{
table
+=
'<tr><td>'
+
_
.
escape
(
key
)
+
'</td><td>'
+
_
.
escape
(
valueObject
[
key
])
+
'</td></tr>'
;
if
(
searchTable
)
{
if
(
_
.
isBoolean
(
valueObject
[
key
]))
{
table
=
valueObject
[
key
].
toString
();
}
else
{
table
=
valueObject
[
key
];
}
}
else
{
table
+=
'<tr><td>'
+
_
.
escape
(
key
)
+
'</td><td>'
+
_
.
escape
(
valueObject
[
key
])
+
'</td></tr>'
;
}
}
}
}
}
}
}
...
...
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