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
2398bf6c
Commit
2398bf6c
authored
Jun 05, 2020
by
Tomas Vik
Committed by
Kushal Pandya
Jun 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove closeAllFiles action from Web IDE
The only usage of this action was in the tests.
parent
9daed804
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
26 deletions
+2
-26
app/assets/javascripts/ide/components/commit_sidebar/editor_header.vue
...vascripts/ide/components/commit_sidebar/editor_header.vue
+1
-1
app/assets/javascripts/ide/components/commit_sidebar/list.vue
...assets/javascripts/ide/components/commit_sidebar/list.vue
+1
-1
app/assets/javascripts/ide/stores/actions.js
app/assets/javascripts/ide/stores/actions.js
+0
-4
spec/frontend/ide/stores/actions_spec.js
spec/frontend/ide/stores/actions_spec.js
+0
-20
No files found.
app/assets/javascripts/ide/components/commit_sidebar/editor_header.vue
View file @
2398bf6c
...
@@ -29,7 +29,7 @@ export default {
...
@@ -29,7 +29,7 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
...
mapActions
([
'
stageChange
'
,
'
unstageChange
'
,
'
discardFileChanges
'
]),
...
mapActions
([
'
unstageChange
'
,
'
discardFileChanges
'
]),
showDiscardModal
()
{
showDiscardModal
()
{
this
.
$refs
.
discardModal
.
show
();
this
.
$refs
.
discardModal
.
show
();
},
},
...
...
app/assets/javascripts/ide/components/commit_sidebar/list.vue
View file @
2398bf6c
...
@@ -55,7 +55,7 @@ export default {
...
@@ -55,7 +55,7 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
...
mapActions
([
'
stageAllChanges
'
,
'
unstageAllChanges
'
,
'
discardAllChanges
'
]),
...
mapActions
([
'
unstageAllChanges
'
,
'
discardAllChanges
'
]),
openDiscardModal
()
{
openDiscardModal
()
{
this
.
$refs
.
discardAllModal
.
show
();
this
.
$refs
.
discardAllModal
.
show
();
},
},
...
...
app/assets/javascripts/ide/stores/actions.js
View file @
2398bf6c
...
@@ -20,10 +20,6 @@ export const discardAllChanges = ({ state, commit, dispatch }) => {
...
@@ -20,10 +20,6 @@ export const discardAllChanges = ({ state, commit, dispatch }) => {
commit
(
types
.
REMOVE_ALL_CHANGES_FILES
);
commit
(
types
.
REMOVE_ALL_CHANGES_FILES
);
};
};
export
const
closeAllFiles
=
({
state
,
dispatch
})
=>
{
state
.
openFiles
.
forEach
(
file
=>
dispatch
(
'
closeFile
'
,
file
));
};
export
const
setResizingStatus
=
({
commit
},
resizing
)
=>
{
export
const
setResizingStatus
=
({
commit
},
resizing
)
=>
{
commit
(
types
.
SET_RESIZING_STATUS
,
resizing
);
commit
(
types
.
SET_RESIZING_STATUS
,
resizing
);
};
};
...
...
spec/frontend/ide/stores/actions_spec.js
View file @
2398bf6c
...
@@ -98,26 +98,6 @@ describe('Multi-file store actions', () => {
...
@@ -98,26 +98,6 @@ describe('Multi-file store actions', () => {
});
});
});
});
describe
(
'
closeAllFiles
'
,
()
=>
{
beforeEach
(()
=>
{
const
f
=
file
(
'
closeAll
'
);
store
.
state
.
openFiles
.
push
(
f
);
store
.
state
.
openFiles
[
0
].
opened
=
true
;
store
.
state
.
entries
[
f
.
path
]
=
f
;
});
it
(
'
closes all open files
'
,
done
=>
{
store
.
dispatch
(
'
closeAllFiles
'
)
.
then
(()
=>
{
expect
(
store
.
state
.
openFiles
.
length
).
toBe
(
0
);
done
();
})
.
catch
(
done
.
fail
);
});
});
describe
(
'
createTempEntry
'
,
()
=>
{
describe
(
'
createTempEntry
'
,
()
=>
{
beforeEach
(()
=>
{
beforeEach
(()
=>
{
document
.
body
.
innerHTML
+=
'
<div class="flash-container"></div>
'
;
document
.
body
.
innerHTML
+=
'
<div class="flash-container"></div>
'
;
...
...
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