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
f39dc0ea
Commit
f39dc0ea
authored
Apr 17, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed loading state not showing in IDE tree list
parent
a56611e3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
app/assets/javascripts/ide/stores/mutations/tree.js
app/assets/javascripts/ide/stores/mutations/tree.js
+2
-6
changelogs/unreleased/ide-tree-loading-fix.yml
changelogs/unreleased/ide-tree-loading-fix.yml
+5
-0
spec/javascripts/ide/stores/mutations/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 @
f39dc0ea
...
@@ -17,12 +17,8 @@ export default {
...
@@ -17,12 +17,8 @@ export default {
});
});
},
},
[
types
.
SET_DIRECTORY_DATA
](
state
,
{
data
,
treePath
})
{
[
types
.
SET_DIRECTORY_DATA
](
state
,
{
data
,
treePath
})
{
Object
.
assign
(
state
,
{
Object
.
assign
(
state
.
trees
[
treePath
],
{
trees
:
Object
.
assign
(
state
.
trees
,
{
[
treePath
]:
{
tree
:
data
,
tree
:
data
,
},
}),
});
});
},
},
[
types
.
SET_LAST_COMMIT_URL
](
state
,
{
tree
=
state
,
url
})
{
[
types
.
SET_LAST_COMMIT_URL
](
state
,
{
tree
=
state
,
url
})
{
...
...
changelogs/unreleased/ide-tree-loading-fix.yml
0 → 100644
View file @
f39dc0ea
---
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 @
f39dc0ea
...
@@ -55,6 +55,16 @@ describe('Multi-file store tree mutations', () => {
...
@@ -55,6 +55,16 @@ describe('Multi-file store tree mutations', () => {
expect
(
tree
.
tree
[
1
].
name
).
toBe
(
'
submodule
'
);
expect
(
tree
.
tree
[
1
].
name
).
toBe
(
'
submodule
'
);
expect
(
tree
.
tree
[
2
].
name
).
toBe
(
'
blob
'
);
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
'
,
()
=>
{
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