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
1a420fd2
Commit
1a420fd2
authored
Apr 17, 2018
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ide-tree-loading-fix' into 'master'
Fixed loading state not showing in IDE tree list See merge request gitlab-org/gitlab-ce!18421
parents
f13d5da2
f39dc0ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
tree.js
app/assets/javascripts/ide/stores/mutations/tree.js
+2
-6
ide-tree-loading-fix.yml
changelogs/unreleased/ide-tree-loading-fix.yml
+5
-0
tree_spec.js
spec/javascripts/ide/stores/mutations/tree_spec.js
+10
-0
No files found.
app/assets/javascripts/ide/stores/mutations/tree.js
View file @
1a420fd2
...
...
@@ -17,12 +17,8 @@ export default {
});
},
[
types
.
SET_DIRECTORY_DATA
](
state
,
{
data
,
treePath
})
{
Object
.
assign
(
state
,
{
trees
:
Object
.
assign
(
state
.
trees
,
{
[
treePath
]:
{
tree
:
data
,
},
}),
Object
.
assign
(
state
.
trees
[
treePath
],
{
tree
:
data
,
});
},
[
types
.
SET_LAST_COMMIT_URL
](
state
,
{
tree
=
state
,
url
})
{
...
...
changelogs/unreleased/ide-tree-loading-fix.yml
0 → 100644
View file @
1a420fd2
---
title
:
Fixed IDE not showing loading state when tree is loading
merge_request
:
author
:
type
:
fixed
spec/javascripts/ide/stores/mutations/tree_spec.js
View file @
1a420fd2
...
...
@@ -55,6 +55,16 @@ describe('Multi-file store tree mutations', () => {
expect
(
tree
.
tree
[
1
].
name
).
toBe
(
'submodule'
);
expect
(
tree
.
tree
[
2
].
name
).
toBe
(
'blob'
);
});
it
(
'keeps loading state'
,
()
=>
{
mutations
.
CREATE_TREE
(
localState
,
{
treePath
:
'project/master'
});
mutations
.
SET_DIRECTORY_DATA
(
localState
,
{
data
,
treePath
:
'project/master'
,
});
expect
(
localState
.
trees
[
'project/master'
].
loading
).
toBe
(
true
);
});
});
describe
(
'REMOVE_ALL_CHANGES_FILES'
,
()
=>
{
...
...
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