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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
afd9b6fb
Commit
afd9b6fb
authored
Jul 21, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed repo_store setActiveFiles not correctly setting file activity
parent
31480210
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/repo/repo_store.js
app/assets/javascripts/repo/repo_store.js
+4
-4
No files found.
app/assets/javascripts/repo/repo_store.js
View file @
afd9b6fb
...
@@ -62,7 +62,7 @@ const RepoStore = {
...
@@ -62,7 +62,7 @@ const RepoStore = {
if
(
RepoStore
.
isActiveFile
(
file
))
return
;
if
(
RepoStore
.
isActiveFile
(
file
))
return
;
RepoStore
.
openedFiles
=
RepoStore
.
openedFiles
RepoStore
.
openedFiles
=
RepoStore
.
openedFiles
.
map
((
openedFile
,
i
)
=>
RepoStore
.
w
(
openedFile
,
i
));
.
map
((
openedFile
,
i
)
=>
RepoStore
.
setFileActivity
(
file
,
openedFile
,
i
));
RepoStore
.
setActiveToRaw
();
RepoStore
.
setActiveToRaw
();
...
@@ -76,9 +76,9 @@ const RepoStore = {
...
@@ -76,9 +76,9 @@ const RepoStore = {
RepoStore
.
binary
=
file
.
binary
;
RepoStore
.
binary
=
file
.
binary
;
},
},
w
(
f
ile
,
i
)
{
setFileActivity
(
file
,
openedF
ile
,
i
)
{
const
activeFile
=
f
ile
;
const
activeFile
=
openedF
ile
;
activeFile
.
active
=
activeF
ile
.
url
===
activeFile
.
url
;
activeFile
.
active
=
f
ile
.
url
===
activeFile
.
url
;
if
(
activeFile
.
active
)
RepoStore
.
setActiveFile
(
activeFile
,
i
);
if
(
activeFile
.
active
)
RepoStore
.
setActiveFile
(
activeFile
,
i
);
...
...
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