BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
afd9b6fb
Unverified
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
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 = {
if
(
RepoStore
.
isActiveFile
(
file
))
return
;
RepoStore
.
openedFiles
=
RepoStore
.
openedFiles
.
map
((
openedFile
,
i
)
=>
RepoStore
.
w
(
openedFile
,
i
));
.
map
((
openedFile
,
i
)
=>
RepoStore
.
setFileActivity
(
file
,
openedFile
,
i
));
RepoStore
.
setActiveToRaw
();
...
...
@@ -76,9 +76,9 @@ const RepoStore = {
RepoStore
.
binary
=
file
.
binary
;
},
w
(
f
ile
,
i
)
{
const
activeFile
=
f
ile
;
activeFile
.
active
=
activeF
ile
.
url
===
activeFile
.
url
;
setFileActivity
(
file
,
openedF
ile
,
i
)
{
const
activeFile
=
openedF
ile
;
activeFile
.
active
=
f
ile
.
url
===
activeFile
.
url
;
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