Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
54ca6190
Commit
54ca6190
authored
Mar 09, 2022
by
Ege Kızıltan
Committed by
Paul Slaughter
Mar 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update fetchSortedData in alerts_list.vue
-
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/82212
parent
d0a3544b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
ee/app/assets/javascripts/threat_monitoring/components/alerts/alerts_list.vue
...ripts/threat_monitoring/components/alerts/alerts_list.vue
+2
-5
No files found.
ee/app/assets/javascripts/threat_monitoring/components/alerts/alerts_list.vue
View file @
54ca6190
...
@@ -15,7 +15,7 @@ import {
...
@@ -15,7 +15,7 @@ import {
import
produce
from
'
immer
'
;
import
produce
from
'
immer
'
;
import
{
n__
}
from
'
~/locale
'
;
import
{
n__
}
from
'
~/locale
'
;
import
getAlertsQuery
from
'
~/graphql_shared/queries/get_alerts.query.graphql
'
;
import
getAlertsQuery
from
'
~/graphql_shared/queries/get_alerts.query.graphql
'
;
import
{
convertToSnakeCase
}
from
'
~/lib/utils/text
_utility
'
;
import
{
sortObjectToString
}
from
'
~/lib/utils/table
_utility
'
;
import
{
joinPaths
}
from
'
~/lib/utils/url_utility
'
;
import
{
joinPaths
}
from
'
~/lib/utils/url_utility
'
;
import
TimeAgo
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
import
TimeAgo
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
import
{
PAGE_SIZE
}
from
'
ee/threat_monitoring/constants
'
;
import
{
PAGE_SIZE
}
from
'
ee/threat_monitoring/constants
'
;
...
@@ -138,10 +138,7 @@ export default {
...
@@ -138,10 +138,7 @@ export default {
}
}
},
},
fetchSortedData
({
sortBy
,
sortDesc
})
{
fetchSortedData
({
sortBy
,
sortDesc
})
{
const
sortingDirection
=
sortDesc
?
'
DESC
'
:
'
ASC
'
;
this
.
sort
=
sortObjectToString
({
sortBy
,
sortDesc
});
const
sortingColumn
=
convertToSnakeCase
(
sortBy
).
toUpperCase
();
this
.
sort
=
`
${
sortingColumn
}
_
${
sortingDirection
}
`
;
},
},
getIssueState
({
issue
:
{
state
}
})
{
getIssueState
({
issue
:
{
state
}
})
{
return
state
===
'
closed
'
?
`(
${
this
.
$options
.
i18n
.
CLOSED
}
)`
:
''
;
return
state
===
'
closed
'
?
`(
${
this
.
$options
.
i18n
.
CLOSED
}
)`
:
''
;
...
...
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