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
8092d6b5
Commit
8092d6b5
authored
4 years ago
by
kevalbhatt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3769:- UI: Changing page limit in Admin audits resets any filters applied on that page
parent
f4e1e6b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
AdminAuditTableLayoutView.js
...oardv2/public/js/views/audit/AdminAuditTableLayoutView.js
+3
-3
AdminAuditTableLayoutView.js
...oardv3/public/js/views/audit/AdminAuditTableLayoutView.js
+3
-3
No files found.
dashboardv2/public/js/views/audit/AdminAuditTableLayoutView.js
View file @
8092d6b5
...
...
@@ -56,7 +56,7 @@ define(['require',
events
[
"click "
+
this
.
ui
.
adminEntityClick
]
=
"onClickAdminEntity"
;
events
[
"change "
+
this
.
ui
.
adminType
]
=
"onClickAdminType"
;
events
[
"click "
+
this
.
ui
.
attrFilter
]
=
function
(
e
)
{
this
.
$
(
'.fa-angle-right'
).
toggleClass
(
'fa-angle-down'
);
this
.
ui
.
attrFilter
.
find
(
'.fa-angle-right'
).
toggleClass
(
'fa-angle-down'
);
this
.
$
(
'.attributeResultContainer'
).
addClass
(
"overlay"
);
this
.
$
(
'.attribute-filter-container, .attr-filter-overlay'
).
toggleClass
(
'hide'
);
this
.
onClickAttrFilter
();
...
...
@@ -120,7 +120,7 @@ define(['require',
closeAttributeModel
:
function
()
{
var
that
=
this
;
that
.
$
(
'.attributeResultContainer'
).
removeClass
(
"overlay"
);
that
.
$
(
'.fa-angle-right'
).
toggleClass
(
'fa-angle-down'
);
that
.
ui
.
attrFilter
.
find
(
'.fa-angle-right'
).
toggleClass
(
'fa-angle-down'
);
that
.
$
(
'.attribute-filter-container, .attr-filter-overlay'
).
toggleClass
(
'hide'
);
},
getAttributes
:
function
(
options
)
{
...
...
@@ -133,7 +133,6 @@ define(['require',
"attributeValue"
:
(
adminFilter
.
type
==
"date"
&&
options
.
isDateParsed
)
?
Date
.
parse
(
adminFilter
.
value
).
toString
()
:
adminFilter
.
value
})
})
this
.
isFilters
=
null
;
}
else
{
adminAttributes
=
[{
"attributeName"
:
"userName"
,
...
...
@@ -301,6 +300,7 @@ define(['require',
},
onClickAdminType
:
function
(
e
,
value
)
{
this
.
onlyPurged
=
e
.
currentTarget
.
value
===
"Purged"
;
this
.
isFilters
=
null
;
this
.
defaultPagination
();
this
.
getAdminCollection
();
},
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/views/audit/AdminAuditTableLayoutView.js
View file @
8092d6b5
...
...
@@ -56,7 +56,7 @@ define(['require',
events
[
"click "
+
this
.
ui
.
adminEntityClick
]
=
"onClickAdminEntity"
;
events
[
"change "
+
this
.
ui
.
adminType
]
=
"onClickAdminType"
;
events
[
"click "
+
this
.
ui
.
attrFilter
]
=
function
(
e
)
{
this
.
$
(
'.fa-angle-right'
).
toggleClass
(
'fa-angle-down'
);
this
.
ui
.
attrFilter
.
find
(
'.fa-angle-right'
).
toggleClass
(
'fa-angle-down'
);
this
.
$
(
'.attributeResultContainer'
).
addClass
(
"overlay"
);
this
.
$
(
'.attribute-filter-container, .attr-filter-overlay'
).
toggleClass
(
'hide'
);
this
.
onClickAttrFilter
();
...
...
@@ -120,7 +120,7 @@ define(['require',
closeAttributeModel
:
function
()
{
var
that
=
this
;
that
.
$
(
'.attributeResultContainer'
).
removeClass
(
"overlay"
);
that
.
$
(
'.fa-angle-right'
).
toggleClass
(
'fa-angle-down'
);
that
.
ui
.
attrFilter
.
find
(
'.fa-angle-right'
).
toggleClass
(
'fa-angle-down'
);
that
.
$
(
'.attribute-filter-container, .attr-filter-overlay'
).
toggleClass
(
'hide'
);
},
getAttributes
:
function
(
options
)
{
...
...
@@ -133,7 +133,6 @@ define(['require',
"attributeValue"
:
(
adminFilter
.
type
==
"date"
&&
options
.
isDateParsed
)
?
Date
.
parse
(
adminFilter
.
value
).
toString
()
:
adminFilter
.
value
})
})
this
.
isFilters
=
null
;
}
else
{
adminAttributes
=
[{
"attributeName"
:
"userName"
,
...
...
@@ -301,6 +300,7 @@ define(['require',
},
onClickAdminType
:
function
(
e
,
value
)
{
this
.
onlyPurged
=
e
.
currentTarget
.
value
===
"Purged"
;
this
.
isFilters
=
null
;
this
.
defaultPagination
();
this
.
getAdminCollection
();
},
...
...
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