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
e04acda4
Commit
e04acda4
authored
5 years ago
by
kevalbhatt
Committed by
Sarath Subramanian
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3471: Regression : UI - Relationship attributes are not displayed in Audit Details Table
Signed-off-by:
Sarath Subramanian
<
sarath@apache.org
>
parent
57b52a29
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
379 additions
and
64 deletions
+379
-64
common.scss
dashboardv2/public/css/scss/common.scss
+2
-1
CreateAuditTableLayoutView_tmpl.html
...c/js/templates/audit/CreateAuditTableLayoutView_tmpl.html
+109
-10
CreateAuditTableLayoutView.js
...ardv2/public/js/views/audit/CreateAuditTableLayoutView.js
+78
-21
common.scss
dashboardv3/public/css/scss/common.scss
+2
-1
theme.scss
dashboardv3/public/css/scss/theme.scss
+1
-0
CreateAuditTableLayoutView_tmpl.html
...c/js/templates/audit/CreateAuditTableLayoutView_tmpl.html
+109
-10
CreateAuditTableLayoutView.js
...ardv3/public/js/views/audit/CreateAuditTableLayoutView.js
+78
-21
No files found.
dashboardv2/public/css/scss/common.scss
View file @
e04acda4
...
...
@@ -207,7 +207,7 @@ pre {
.footer-content
{
position
:
fixed
;
right
:
0px
;
padding
:
10
px
;
padding
:
2
px
;
bottom
:
0
;
background
:
white
;
}
...
...
@@ -215,6 +215,7 @@ pre {
#accordion
{
.panel-default
>
.panel-heading
{
cursor
:
pointer
;
width
:
100%
;
}
}
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/templates/audit/CreateAuditTableLayoutView_tmpl.html
View file @
e04acda4
...
...
@@ -14,13 +14,111 @@
* See the License for the specific language governing permissions and
* limitations under the License.
-->
<h4>
Name:
<span
data-id=
"name"
></span></h4>
<table
class=
"table table-bordered table-striped"
data-id=
"tableAudit"
>
<thead>
<tr
data-id=
"auditHeaderValue"
>
</tr>
</thead>
<tbody
data-id=
"auditValue"
>
</tbody>
</table>
<h4
data-id=
"noData"
style=
"display:none"
>
No details to show
</h4>
<h4
style=
"word-break: break-word;"
>
Name:
<span
data-id=
"name"
></span></h4>
<div
class=
"panel-group server-stats-container statsContainer "
id=
"accordion"
>
<div
class=
"panel panel-default custom-panel expand_collapse_panel-icon hide"
data-id=
"detailsAttribute"
>
<div
class=
"panel-heading"
data-toggle=
"collapse"
href=
"#detailAttributeTableCollapse"
aria-expanded=
"true"
>
<h4
class=
"panel-title"
>
<a>
Properties
</a>
</h4>
<div
class=
"btn-group pull-left"
>
<button
type=
"button"
title=
"Collapse"
><i
class=
"ec-icon fa"
></i></button>
</div>
</div>
<div
id=
"detailAttributeTableCollapse"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<table
class=
"table stat-table"
>
<tbody
data-id=
"attributeDetail-card"
>
<tr
class=
"empty text-center"
>
<td
colspan=
"3"
><span>
No records found!
</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div
class=
"panel panel-default custom-panel expand_collapse_panel-icon hide"
data-id=
"attributeDetails"
>
<div
class=
"panel-heading"
data-toggle=
"collapse"
href=
"#attributeTableCollapse"
aria-expanded=
"true"
>
<h4
class=
"panel-title"
>
<a
data-id=
"panel-attr-heading"
>
Technical properties
</a>
</h4>
<div
class=
"btn-group pull-left"
>
<button
type=
"button"
title=
"Collapse"
><i
class=
"ec-icon fa"
></i></button>
</div>
</div>
<div
id=
"attributeTableCollapse"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<table
class=
"table stat-table"
>
<tbody
data-id=
"attribute-card"
>
<tr
class=
"empty text-center"
>
<td
colspan=
"3"
><span>
No records found!
</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div
class=
"panel panel-default custom-panel expand_collapse_panel-icon hide"
data-id=
"relationShipAttributeDetails"
>
<div
class=
"panel-heading"
data-toggle=
"collapse"
href=
"#relationShipAttributeTableCollapse"
aria-expanded=
"true"
>
<h4
class=
"panel-title"
>
<a>
Relationship properties
</a>
</h4>
<div
class=
"btn-group pull-left"
>
<button
type=
"button"
title=
"Collapse"
><i
class=
"ec-icon fa"
></i></button>
</div>
</div>
<div
id=
"relationShipAttributeTableCollapse"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<table
class=
"table stat-table"
>
<tbody
data-id=
"relationship-attr-card"
>
<tr
class=
"empty text-center"
>
<td
colspan=
"3"
><span>
No records found!
</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div
class=
"panel panel-default custom-panel expand_collapse_panel-icon hide"
data-id=
"customAttributeDetails"
>
<div
class=
"panel-heading"
data-toggle=
"collapse"
href=
"#customAttributeCollapse"
aria-expanded=
"true"
>
<h4
class=
"panel-title"
>
<a>
User-defined properties
</a>
</h4>
<div
class=
"btn-group pull-left"
>
<button
type=
"button"
title=
"Collapse"
><i
class=
"ec-icon fa"
></i></button>
</div>
</div>
<div
id=
"customAttributeCollapse"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<table
class=
"table stat-table"
>
<tbody
data-id=
"custom-attr-card"
>
<tr
class=
"empty text-center"
>
<td
colspan=
"3"
><span>
No records found!
</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div
class=
"panel panel-default custom-panel expand_collapse_panel-icon hide"
data-id=
"labelsDetails"
>
<div
class=
"panel-heading"
data-toggle=
"collapse"
href=
"#labelsTableCollapse"
aria-expanded=
"true"
>
<h4
class=
"panel-title"
>
<a>
Labels
</a>
</h4>
<div
class=
"btn-group pull-left"
>
<button
type=
"button"
title=
"Collapse"
><i
class=
"ec-icon fa"
></i></button>
</div>
</div>
<div
id=
"labelsTableCollapse"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"badge-container"
data-id=
"label-card"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<h4
data-id=
"noData"
class=
"text-center hide"
><i>
No details to show!
</i></h4>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/audit/CreateAuditTableLayoutView.js
View file @
e04acda4
...
...
@@ -38,11 +38,23 @@ define(['require',
/** ui selector cache */
ui
:
{
auditValue
:
"[data-id='auditValue']"
,
auditCreate
:
"[data-id='auditCreat
e']"
,
name
:
"[data-id='nam
e']"
,
noData
:
"[data-id='noData']"
,
tableAudit
:
"[data-id='tableAudit']"
,
auditHeaderValue
:
"[data-id='auditHeaderValue']"
,
name
:
"[data-id='name']"
attributeDetails
:
"[data-id='attributeDetails']"
,
attributeCard
:
"[data-id='attribute-card']"
,
labelsDetailsTable
:
"[data-id='labelsDetails']"
,
labelCard
:
"[data-id='label-card']"
,
customAttributeDetails
:
"[data-id='customAttributeDetails']"
,
customAttrCard
:
"[data-id='custom-attr-card']"
,
relationShipAttributeDetails
:
"[data-id='relationShipAttributeDetails']"
,
relationshipAttrCard
:
"[data-id='relationship-attr-card']"
,
attributeDetailCard
:
"[data-id='attributeDetail-card']"
,
detailsAttribute
:
"[data-id='detailsAttribute']"
,
panelAttrHeading
:
"[data-id='panel-attr-heading']"
,
nameUpdate
:
"[data-id='name-update']"
},
/** ui events hash */
events
:
function
()
{
...
...
@@ -61,6 +73,20 @@ define(['require',
onRender
:
function
()
{
this
.
auditTableGenerate
();
},
createTableWithValues
:
function
(
tableDetails
)
{
var
attrTable
=
CommonViewFunction
.
propertyTable
({
scope
:
this
,
valueObject
:
tableDetails
});
return
attrTable
;
},
updateName
:
function
(
name
)
{
this
.
ui
.
name
.
text
(
name
);
},
noDetailsShow
:
function
()
{
this
.
ui
.
noData
.
removeClass
(
'hide'
);
},
auditTableGenerate
:
function
()
{
var
that
=
this
,
table
=
""
;
...
...
@@ -78,32 +104,62 @@ define(['require',
if
(
name
==
"-"
)
{
name
=
_
.
escape
(
parseDetailsObject
.
typeName
);
}
var
name
=
((
name
?
name
:
this
.
entityName
));
that
.
updateName
(
name
);
if
(
parseDetailsObject
)
{
var
attributesDetails
=
parseDetailsObject
.
attributes
,
customAttr
=
parseDetailsObject
.
customAttributes
,
labelsDetails
=
parseDetailsObject
.
labels
,
relationshipAttributes
=
parseDetailsObject
.
relationshipAttributes
;
if
(
attributesDetails
)
{
that
.
ui
.
attributeDetails
.
removeClass
(
'hide'
);
that
.
action
.
indexOf
(
"Classification"
)
===
-
1
?
that
.
ui
.
panelAttrHeading
.
html
(
"Technical properties "
)
:
that
.
ui
.
panelAttrHeading
.
html
(
"Properties "
);
var
attrTable
=
that
.
createTableWithValues
(
attributesDetails
);
that
.
ui
.
attributeCard
.
html
(
attrTable
);
}
if
(
!
_
.
isEmpty
(
customAttr
))
{
that
.
ui
.
customAttributeDetails
.
removeClass
(
'hide'
);
var
customAttrTable
=
that
.
createTableWithValues
(
customAttr
);
that
.
ui
.
customAttrCard
.
html
(
customAttrTable
);
}
if
(
!
_
.
isEmpty
(
labelsDetails
))
{
this
.
ui
.
labelsDetailsTable
.
removeClass
(
'hide'
);
var
labelsTable
=
''
;
_
.
each
(
labelsDetails
,
function
(
value
,
key
,
list
)
{
labelsTable
+=
"<label class='label badge-default'>"
+
value
+
"</label>"
;
});
that
.
ui
.
labelCard
.
html
(
labelsTable
);
}
if
(
!
_
.
isEmpty
(
relationshipAttributes
))
{
that
.
ui
.
relationShipAttributeDetails
.
removeClass
(
'hide'
);
var
relationshipAttrTable
=
that
.
createTableWithValues
(
relationshipAttributes
);
that
.
ui
.
relationshipAttrCard
.
html
(
relationshipAttrTable
);
}
if
(
!
attributesDetails
&&
!
customAttr
&&
!
labelsDetails
&&
!
relationshipAttributes
)
{
that
.
ui
.
detailsAttribute
.
removeClass
(
'hide'
);
var
attrDetailTable
=
that
.
createTableWithValues
(
parseDetailsObject
);
that
.
ui
.
attributeDetailCard
.
html
(
attrDetailTable
);
}
}
else
{
that
.
noDetailsShow
();
}
}
catch
(
err
)
{
if
(
_
.
isArray
(
parseDetailsObject
))
{
var
name
=
_
.
escape
(
parseDetailsObject
[
0
]);
}
that
.
updateName
(
name
);
that
.
noDetailsShow
();
}
var
name
=
((
name
?
name
:
this
.
entityName
));
this
.
ui
.
name
.
text
(
name
);
if
(
parseDetailsObject
)
{
this
.
ui
.
auditHeaderValue
.
html
(
'<th>Key</th><th>New Value</th>'
);
var
value
=
parseDetailsObject
.
attributes
||
parseDetailsObject
;
table
=
CommonViewFunction
.
propertyTable
({
scope
:
this
,
valueObject
:
value
,
attributeDefs
:
this
.
attributeDefs
});
if
(
table
.
length
)
{
this
.
ui
.
noData
.
hide
();
this
.
ui
.
tableAudit
.
show
();
this
.
ui
.
auditValue
.
html
(
table
);
}
else
{
this
.
ui
.
noData
.
show
();
this
.
ui
.
tableAudit
.
hide
();
}
}
else
{
this
.
ui
.
noData
.
show
();
}
}
else
if
(
detailObj
==
"Deleted entity"
)
{
th
is
.
ui
.
name
.
text
(
this
.
entityName
);
th
at
.
updateName
(
this
.
entityName
);
}
}
,
}
});
return
CreateAuditTableLayoutView
;
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
dashboardv3/public/css/scss/common.scss
View file @
e04acda4
...
...
@@ -205,13 +205,14 @@ pre {
#accordion
{
.panel-default
>
.panel-heading
{
cursor
:
pointer
;
width
:
100%
;
}
}
.footer-content
{
position
:
fixed
;
right
:
0px
;
padding
:
10
px
;
padding
:
2
px
;
bottom
:
0
;
background
:
white
;
}
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/css/scss/theme.scss
View file @
e04acda4
...
...
@@ -34,6 +34,7 @@ body {
#page-wrapper
{
padding-top
:
15px
!
important
;
padding-bottom
:
10px
!
important
;
}
// &:after {
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/templates/audit/CreateAuditTableLayoutView_tmpl.html
View file @
e04acda4
...
...
@@ -14,13 +14,111 @@
* See the License for the specific language governing permissions and
* limitations under the License.
-->
<h4>
Name:
<span
data-id=
"name"
></span></h4>
<table
class=
"table table-bordered table-striped"
data-id=
"tableAudit"
>
<thead>
<tr
data-id=
"auditHeaderValue"
>
</tr>
</thead>
<tbody
data-id=
"auditValue"
>
</tbody>
</table>
<h4
data-id=
"noData"
style=
"display:none"
>
No details to show
</h4>
<h4
style=
"word-break: break-word;"
>
Name:
<span
data-id=
"name"
></span></h4>
<div
class=
"panel-group server-stats-container statsContainer "
id=
"accordion"
>
<div
class=
"panel panel-default custom-panel expand_collapse_panel-icon hide"
data-id=
"detailsAttribute"
>
<div
class=
"panel-heading"
data-toggle=
"collapse"
href=
"#detailAttributeTableCollapse"
aria-expanded=
"true"
>
<h4
class=
"panel-title"
>
<a>
Properties
</a>
</h4>
<div
class=
"btn-group pull-left"
>
<button
type=
"button"
title=
"Collapse"
><i
class=
"ec-icon fa"
></i></button>
</div>
</div>
<div
id=
"detailAttributeTableCollapse"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<table
class=
"table stat-table"
>
<tbody
data-id=
"attributeDetail-card"
>
<tr
class=
"empty text-center"
>
<td
colspan=
"3"
><span>
No records found!
</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div
class=
"panel panel-default custom-panel expand_collapse_panel-icon hide"
data-id=
"attributeDetails"
>
<div
class=
"panel-heading"
data-toggle=
"collapse"
href=
"#attributeTableCollapse"
aria-expanded=
"true"
>
<h4
class=
"panel-title"
>
<a
data-id=
"panel-attr-heading"
>
Technical properties
</a>
</h4>
<div
class=
"btn-group pull-left"
>
<button
type=
"button"
title=
"Collapse"
><i
class=
"ec-icon fa"
></i></button>
</div>
</div>
<div
id=
"attributeTableCollapse"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<table
class=
"table stat-table"
>
<tbody
data-id=
"attribute-card"
>
<tr
class=
"empty text-center"
>
<td
colspan=
"3"
><span>
No records found!
</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div
class=
"panel panel-default custom-panel expand_collapse_panel-icon hide"
data-id=
"relationShipAttributeDetails"
>
<div
class=
"panel-heading"
data-toggle=
"collapse"
href=
"#relationShipAttributeTableCollapse"
aria-expanded=
"true"
>
<h4
class=
"panel-title"
>
<a>
Relationship properties
</a>
</h4>
<div
class=
"btn-group pull-left"
>
<button
type=
"button"
title=
"Collapse"
><i
class=
"ec-icon fa"
></i></button>
</div>
</div>
<div
id=
"relationShipAttributeTableCollapse"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<table
class=
"table stat-table"
>
<tbody
data-id=
"relationship-attr-card"
>
<tr
class=
"empty text-center"
>
<td
colspan=
"3"
><span>
No records found!
</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div
class=
"panel panel-default custom-panel expand_collapse_panel-icon hide"
data-id=
"customAttributeDetails"
>
<div
class=
"panel-heading"
data-toggle=
"collapse"
href=
"#customAttributeCollapse"
aria-expanded=
"true"
>
<h4
class=
"panel-title"
>
<a>
User-defined properties
</a>
</h4>
<div
class=
"btn-group pull-left"
>
<button
type=
"button"
title=
"Collapse"
><i
class=
"ec-icon fa"
></i></button>
</div>
</div>
<div
id=
"customAttributeCollapse"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<table
class=
"table stat-table"
>
<tbody
data-id=
"custom-attr-card"
>
<tr
class=
"empty text-center"
>
<td
colspan=
"3"
><span>
No records found!
</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div
class=
"panel panel-default custom-panel expand_collapse_panel-icon hide"
data-id=
"labelsDetails"
>
<div
class=
"panel-heading"
data-toggle=
"collapse"
href=
"#labelsTableCollapse"
aria-expanded=
"true"
>
<h4
class=
"panel-title"
>
<a>
Labels
</a>
</h4>
<div
class=
"btn-group pull-left"
>
<button
type=
"button"
title=
"Collapse"
><i
class=
"ec-icon fa"
></i></button>
</div>
</div>
<div
id=
"labelsTableCollapse"
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"badge-container"
data-id=
"label-card"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<h4
data-id=
"noData"
class=
"text-center hide"
><i>
No details to show!
</i></h4>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/views/audit/CreateAuditTableLayoutView.js
View file @
e04acda4
...
...
@@ -38,11 +38,23 @@ define(['require',
/** ui selector cache */
ui
:
{
auditValue
:
"[data-id='auditValue']"
,
auditCreate
:
"[data-id='auditCreat
e']"
,
name
:
"[data-id='nam
e']"
,
noData
:
"[data-id='noData']"
,
tableAudit
:
"[data-id='tableAudit']"
,
auditHeaderValue
:
"[data-id='auditHeaderValue']"
,
name
:
"[data-id='name']"
attributeDetails
:
"[data-id='attributeDetails']"
,
attributeCard
:
"[data-id='attribute-card']"
,
labelsDetailsTable
:
"[data-id='labelsDetails']"
,
labelCard
:
"[data-id='label-card']"
,
customAttributeDetails
:
"[data-id='customAttributeDetails']"
,
customAttrCard
:
"[data-id='custom-attr-card']"
,
relationShipAttributeDetails
:
"[data-id='relationShipAttributeDetails']"
,
relationshipAttrCard
:
"[data-id='relationship-attr-card']"
,
attributeDetailCard
:
"[data-id='attributeDetail-card']"
,
detailsAttribute
:
"[data-id='detailsAttribute']"
,
panelAttrHeading
:
"[data-id='panel-attr-heading']"
,
nameUpdate
:
"[data-id='name-update']"
},
/** ui events hash */
events
:
function
()
{
...
...
@@ -61,6 +73,20 @@ define(['require',
onRender
:
function
()
{
this
.
auditTableGenerate
();
},
createTableWithValues
:
function
(
tableDetails
)
{
var
attrTable
=
CommonViewFunction
.
propertyTable
({
scope
:
this
,
valueObject
:
tableDetails
});
return
attrTable
;
},
updateName
:
function
(
name
)
{
this
.
ui
.
name
.
text
(
name
);
},
noDetailsShow
:
function
()
{
this
.
ui
.
noData
.
removeClass
(
'hide'
);
},
auditTableGenerate
:
function
()
{
var
that
=
this
,
table
=
""
;
...
...
@@ -78,32 +104,62 @@ define(['require',
if
(
name
==
"-"
)
{
name
=
_
.
escape
(
parseDetailsObject
.
typeName
);
}
var
name
=
((
name
?
name
:
this
.
entityName
));
that
.
updateName
(
name
);
if
(
parseDetailsObject
)
{
var
attributesDetails
=
parseDetailsObject
.
attributes
,
customAttr
=
parseDetailsObject
.
customAttributes
,
labelsDetails
=
parseDetailsObject
.
labels
,
relationshipAttributes
=
parseDetailsObject
.
relationshipAttributes
;
if
(
attributesDetails
)
{
that
.
ui
.
attributeDetails
.
removeClass
(
'hide'
);
that
.
action
.
indexOf
(
"Classification"
)
===
-
1
?
that
.
ui
.
panelAttrHeading
.
html
(
"Technical properties "
)
:
that
.
ui
.
panelAttrHeading
.
html
(
"Properties "
);
var
attrTable
=
that
.
createTableWithValues
(
attributesDetails
);
that
.
ui
.
attributeCard
.
html
(
attrTable
);
}
if
(
!
_
.
isEmpty
(
customAttr
))
{
that
.
ui
.
customAttributeDetails
.
removeClass
(
'hide'
);
var
customAttrTable
=
that
.
createTableWithValues
(
customAttr
);
that
.
ui
.
customAttrCard
.
html
(
customAttrTable
);
}
if
(
!
_
.
isEmpty
(
labelsDetails
))
{
this
.
ui
.
labelsDetailsTable
.
removeClass
(
'hide'
);
var
labelsTable
=
''
;
_
.
each
(
labelsDetails
,
function
(
value
,
key
,
list
)
{
labelsTable
+=
"<label class='label badge-default'>"
+
value
+
"</label>"
;
});
that
.
ui
.
labelCard
.
html
(
labelsTable
);
}
if
(
!
_
.
isEmpty
(
relationshipAttributes
))
{
that
.
ui
.
relationShipAttributeDetails
.
removeClass
(
'hide'
);
var
relationshipAttrTable
=
that
.
createTableWithValues
(
relationshipAttributes
);
that
.
ui
.
relationshipAttrCard
.
html
(
relationshipAttrTable
);
}
if
(
!
attributesDetails
&&
!
customAttr
&&
!
labelsDetails
&&
!
relationshipAttributes
)
{
that
.
ui
.
detailsAttribute
.
removeClass
(
'hide'
);
var
attrDetailTable
=
that
.
createTableWithValues
(
parseDetailsObject
);
that
.
ui
.
attributeDetailCard
.
html
(
attrDetailTable
);
}
}
else
{
that
.
noDetailsShow
();
}
}
catch
(
err
)
{
if
(
_
.
isArray
(
parseDetailsObject
))
{
var
name
=
_
.
escape
(
parseDetailsObject
[
0
]);
}
that
.
updateName
(
name
);
that
.
noDetailsShow
();
}
var
name
=
((
name
?
name
:
this
.
entityName
));
this
.
ui
.
name
.
text
(
name
);
if
(
parseDetailsObject
)
{
this
.
ui
.
auditHeaderValue
.
html
(
'<th>Key</th><th>New Value</th>'
);
var
value
=
parseDetailsObject
.
attributes
||
parseDetailsObject
;
table
=
CommonViewFunction
.
propertyTable
({
scope
:
this
,
valueObject
:
value
,
attributeDefs
:
this
.
attributeDefs
});
if
(
table
.
length
)
{
this
.
ui
.
noData
.
hide
();
this
.
ui
.
tableAudit
.
show
();
this
.
ui
.
auditValue
.
html
(
table
);
}
else
{
this
.
ui
.
noData
.
show
();
this
.
ui
.
tableAudit
.
hide
();
}
}
else
{
this
.
ui
.
noData
.
show
();
}
}
else
if
(
detailObj
==
"Deleted entity"
)
{
th
is
.
ui
.
name
.
text
(
this
.
entityName
);
th
at
.
updateName
(
this
.
entityName
);
}
}
,
}
});
return
CreateAuditTableLayoutView
;
});
\ No newline at end of file
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