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
60f878e5
Commit
60f878e5
authored
5 years ago
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3657 : UI: changes for entity purge audits (Minor title changes)
parent
721fcb41
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
20 deletions
+8
-20
AdministratorLayoutView_tmpl.html
...templates/administrator/AdministratorLayoutView_tmpl.html
+2
-2
AdminAuditTableLayoutView.js
...oardv3/public/js/views/audit/AdminAuditTableLayoutView.js
+6
-18
No files found.
dashboardv3/public/js/templates/administrator/AdministratorLayoutView_tmpl.html
View file @
60f878e5
...
...
@@ -22,7 +22,7 @@
<ul
class=
"nav nav-tabs"
data-id=
"tab-list"
>
<li
role=
"businessMetadata"
class=
"tab active"
><a
href=
"#tab-businessMetadata"
aria-controls=
"tab-businessMetadata"
role=
"tab"
data-toggle=
"tab"
>
Business Metadata
</a></li>
<li
role=
"enum"
><a
href=
"#tab-enum"
aria-controls=
"tab-enum"
role=
"tab"
data-toggle=
"tab"
>
Enumerations
</a></li>
<li
role=
"a
dmin"
><a
href=
"#tab-admin"
aria-controls=
"tab-admin
"
role=
"tab"
data-toggle=
"tab"
>
Audits
</a></li>
<li
role=
"a
udit"
><a
href=
"#tab-audit"
aria-controls=
"tab-audit
"
role=
"tab"
data-toggle=
"tab"
>
Audits
</a></li>
</ul>
</div>
</div>
...
...
@@ -36,7 +36,7 @@
<div
id=
"r_enumTableLayoutView"
>
</div>
</div>
<div
id=
"tab-a
dmin"
role=
"admin
"
class=
"tab-pane animated fadeIn"
>
<div
id=
"tab-a
udit"
role=
"audit
"
class=
"tab-pane animated fadeIn"
>
<div
id=
"r_adminTableLayoutView"
>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/views/audit/AdminAuditTableLayoutView.js
View file @
60f878e5
...
...
@@ -79,7 +79,6 @@ define(['require',
this
.
limit
=
25
;
this
.
entityCollection
.
url
=
UrlLinks
.
adminApiUrl
();
this
.
entityCollection
.
modelAttrName
=
"events"
;
this
.
onlyAdmin
=
true
;
this
.
commonTableOptions
=
{
collection
:
this
.
entityCollection
,
includeFilter
:
false
,
...
...
@@ -152,7 +151,7 @@ define(['require',
}]
},
onRender
:
function
()
{
var
str
=
'<option>All</option><option>
Admin
</option>'
;
var
str
=
'<option>All</option><option>
Purged
</option>'
;
this
.
ui
.
adminType
.
html
(
str
);
this
.
ui
.
adminType
.
select2
({});
this
.
ui
.
adminRegion
.
hide
();
...
...
@@ -174,7 +173,7 @@ define(['require',
"operator"
:
"like"
,
"attributeValue"
:
"admin"
}];
if
(
!
this
.
onlyAdmin
)
{
if
(
this
.
onlyPurged
===
true
)
{
adminAttributes
.
push
({
"attributeName"
:
"operation"
,
"operator"
:
"like"
,
...
...
@@ -281,7 +280,7 @@ define(['require',
}
else
{
adminValues
=
''
;
}
var
adminText
=
'<div class="row"><div class="col-sm-12 attr-details admin-attr-details"><div class="col-sm-2">
Admin
Entities: </div><div class="col-sm-10">'
+
adminValues
+
'</div></div></div>'
;
var
adminText
=
'<div class="row"><div class="col-sm-12 attr-details admin-attr-details"><div class="col-sm-2">
Purged
Entities: </div><div class="col-sm-10">'
+
adminValues
+
'</div></div></div>'
;
$
(
el
).
append
(
$
(
'<div>'
).
html
(
adminText
));
}
...
...
@@ -294,18 +293,7 @@ define(['require',
operation
:
{
label
:
"Operation"
,
cell
:
"String"
,
editable
:
false
,
formatter
:
_
.
extend
({},
Backgrid
.
CellFormatter
.
prototype
,
{
fromRaw
:
function
(
rawValue
,
model
)
{
if
(
rawValue
===
"PURGE"
&&
model
.
attributes
.
params
)
{
var
adminLength
=
model
.
attributes
.
result
.
replace
(
'['
,
''
).
replace
(
']'
,
''
).
split
(
','
).
length
;
return
adminLength
===
1
?
adminLength
+
" entity purged."
:
adminLength
+
" entities purged."
;
}
else
{
return
"No entity purged."
;
}
}
})
editable
:
false
},
clientId
:
{
label
:
"Client ID"
,
...
...
@@ -336,7 +324,7 @@ define(['require',
},
onClickAdminType
:
function
(
e
,
value
)
{
this
.
only
Admin
=
e
.
currentTarget
.
value
===
"Admin"
?
false
:
true
;
this
.
only
Purged
=
e
.
currentTarget
.
value
===
"Purged"
;
this
.
getAdminCollection
();
},
onClickAdminEntity
:
function
(
e
)
{
...
...
@@ -348,7 +336,7 @@ define(['require',
guid
:
$
(
e
.
target
).
text
(),
},
modal
=
new
Modal
({
title
:
"
Admin Entity Details
: "
+
obj
.
guid
,
title
:
"
Purged Entity Details
: "
+
obj
.
guid
,
content
:
new
AuditTableLayoutView
(
obj
),
mainClass
:
"modal-full-screen"
,
okCloses
:
true
,
...
...
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