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
c7e11f65
Commit
c7e11f65
authored
Oct 12, 2021
by
Jacques
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use unique key for generating row numbers
Uses a unique key for generating row numbers
parent
f93e436d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
app/assets/javascripts/repository/components/table/index.vue
app/assets/javascripts/repository/components/table/index.vue
+6
-5
No files found.
app/assets/javascripts/repository/components/table/index.vue
View file @
c7e11f65
...
...
@@ -90,17 +90,18 @@ export default {
showMore
()
{
this
.
$emit
(
'
showMore
'
);
},
generateRowNumber
(
id
)
{
generateRowNumber
(
path
,
id
,
index
)
{
const
key
=
`
${
path
}
-
${
id
}
-
${
index
}
`
;
if
(
!
this
.
glFeatures
.
lazyLoadCommits
)
{
return
0
;
}
if
(
!
this
.
rowNumbers
[
id
]
&&
this
.
rowNumbers
[
id
]
!==
0
)
{
if
(
!
this
.
rowNumbers
[
key
]
&&
this
.
rowNumbers
[
key
]
!==
0
)
{
this
.
$options
.
totalRowsLoaded
+=
1
;
this
.
rowNumbers
[
id
]
=
this
.
$options
.
totalRowsLoaded
;
this
.
rowNumbers
[
key
]
=
this
.
$options
.
totalRowsLoaded
;
}
return
this
.
rowNumbers
[
id
];
return
this
.
rowNumbers
[
key
];
},
getCommit
(
fileName
,
type
)
{
if
(
!
this
.
glFeatures
.
lazyLoadCommits
)
{
...
...
@@ -150,7 +151,7 @@ export default {
:lfs-oid="entry.lfsOid"
:loading-path="loadingPath"
:total-entries="totalEntries"
:row-number="generateRowNumber(entry.
id
)"
:row-number="generateRowNumber(entry.
flatPath, entry.id, index
)"
:commit-info="getCommit(entry.name, entry.type)"
v-on="$listeners"
/>
...
...
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