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
71861c69
Commit
71861c69
authored
May 05, 2021
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename sortKey property
Temporary fix until we figure out how to work with BootstrapVue sort keys.
parent
c13ed69f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/incidents/components/incidents_list.vue
...ssets/javascripts/incidents/components/incidents_list.vue
+3
-3
No files found.
app/assets/javascripts/incidents/components/incidents_list.vue
View file @
71861c69
...
...
@@ -72,7 +72,7 @@ export default {
thClass
:
`gl-text-right gl-w-eighth`
,
tdClass
:
`
${
tdClass
}
gl-text-right`
,
thAttr
:
TH_INCIDENT_SLA_TEST_ID
,
s
ortKey
:
'
SLA_DUE_AT
'
,
actualS
ortKey
:
'
SLA_DUE_AT
'
,
sortable
:
true
,
sortDirection
:
'
asc
'
,
},
...
...
@@ -262,8 +262,8 @@ export default {
const
sortingDirection
=
sortDesc
?
'
DESC
'
:
'
ASC
'
;
// Use `sortKey` if provided, otherwise fall back to existing algorithm
if
(
field
?.
s
ortKey
)
{
sortKey
=
field
.
s
ortKey
;
if
(
field
?.
actualS
ortKey
)
{
sortKey
=
field
.
actualS
ortKey
;
}
else
{
sortKey
=
convertToSnakeCase
(
sortBy
).
replace
(
/_.*/
,
''
).
toUpperCase
();
}
...
...
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