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
6bec91bf
Commit
6bec91bf
authored
Mar 28, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed karma
parent
029f7e6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
app/assets/javascripts/ide/stores/mutations/file.js
app/assets/javascripts/ide/stores/mutations/file.js
+3
-1
spec/javascripts/ide/stores/mutations/file_spec.js
spec/javascripts/ide/stores/mutations/file_spec.js
+1
-0
No files found.
app/assets/javascripts/ide/stores/mutations/file.js
View file @
6bec91bf
...
...
@@ -8,7 +8,9 @@ export default {
if
(
active
&&
!
state
.
entries
[
path
].
pending
)
{
Object
.
assign
(
state
,
{
openFiles
:
state
.
openFiles
.
map
(
f
=>
Object
.
assign
(
f
,
{
active
:
!
(
f
.
pending
&&
f
.
active
)
})),
openFiles
:
state
.
openFiles
.
map
(
f
=>
Object
.
assign
(
f
,
{
active
:
f
.
pending
?
false
:
f
.
active
}),
),
});
}
},
...
...
spec/javascripts/ide/stores/mutations/file_spec.js
View file @
6bec91bf
...
...
@@ -27,6 +27,7 @@ describe('Multi-file store file mutations', () => {
localState
.
openFiles
.
push
({
...
localFile
,
pending
:
true
,
active
:
true
,
});
mutations
.
SET_FILE_ACTIVE
(
localState
,
{
...
...
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