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
Léo-Paul Géneau
gitlab-ce
Commits
8e0d073b
Commit
8e0d073b
authored
Apr 19, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed failing commit actions spec
parent
5d1d5830
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
app/assets/javascripts/ide/stores/actions.js
app/assets/javascripts/ide/stores/actions.js
+5
-8
spec/javascripts/ide/stores/actions_spec.js
spec/javascripts/ide/stores/actions_spec.js
+0
-1
No files found.
app/assets/javascripts/ide/stores/actions.js
View file @
8e0d073b
...
@@ -33,10 +33,7 @@ export const setPanelCollapsedStatus = ({ commit }, { side, collapsed }) => {
...
@@ -33,10 +33,7 @@ export const setPanelCollapsedStatus = ({ commit }, { side, collapsed }) => {
}
}
};
};
export
const
toggleRightPanelCollapsed
=
(
export
const
toggleRightPanelCollapsed
=
({
dispatch
,
state
},
e
=
undefined
)
=>
{
{
dispatch
,
state
},
e
=
undefined
,
)
=>
{
if
(
e
)
{
if
(
e
)
{
$
(
e
.
currentTarget
)
$
(
e
.
currentTarget
)
.
tooltip
(
'
hide
'
)
.
tooltip
(
'
hide
'
)
...
@@ -141,11 +138,11 @@ export const updateDelayViewerUpdated = ({ commit }, delay) => {
...
@@ -141,11 +138,11 @@ export const updateDelayViewerUpdated = ({ commit }, delay) => {
commit
(
types
.
UPDATE_DELAY_VIEWER_CHANGE
,
delay
);
commit
(
types
.
UPDATE_DELAY_VIEWER_CHANGE
,
delay
);
};
};
export
const
updateTempFlagForEntry
=
({
commit
,
dispatch
,
state
},
{
entry
,
tempFile
})
=>
{
export
const
updateTempFlagForEntry
=
({
commit
,
dispatch
,
state
},
{
file
,
tempFile
})
=>
{
commit
(
types
.
UPDATE_TEMP_FLAG
,
{
path
:
entry
.
path
,
tempFile
});
commit
(
types
.
UPDATE_TEMP_FLAG
,
{
path
:
file
.
path
,
tempFile
});
if
(
entry
.
parentPath
)
{
if
(
file
.
parentPath
)
{
dispatch
(
'
updateTempFlagForEntry
'
,
{
entry
:
state
.
entries
[
entry
.
parentPath
],
tempFile
});
dispatch
(
'
updateTempFlagForEntry
'
,
{
entry
:
state
.
entries
[
file
.
parentPath
],
tempFile
});
}
}
};
};
...
...
spec/javascripts/ide/stores/actions_spec.js
View file @
8e0d073b
import
*
as
urlUtils
from
'
~/lib/utils/url_utility
'
;
import
*
as
urlUtils
from
'
~/lib/utils/url_utility
'
;
import
*
as
actions
from
'
~/ide/stores/actions
'
;
import
*
as
actions
from
'
~/ide/stores/actions
'
;
import
store
from
'
~/ide/stores
'
;
import
store
from
'
~/ide/stores
'
;
import
*
as
actions
from
'
~/ide/stores/actions
'
;
import
*
as
types
from
'
~/ide/stores/mutation_types
'
;
import
*
as
types
from
'
~/ide/stores/mutation_types
'
;
import
router
from
'
~/ide/ide_router
'
;
import
router
from
'
~/ide/ide_router
'
;
import
{
resetStore
,
file
}
from
'
../helpers
'
;
import
{
resetStore
,
file
}
from
'
../helpers
'
;
...
...
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