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
71d146f1
Commit
71d146f1
authored
Mar 15, 2021
by
Thomas Randolph
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert back to single-file actions
parent
49a88f54
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
13 deletions
+10
-13
app/assets/javascripts/mr_notes/stores/actions.js
app/assets/javascripts/mr_notes/stores/actions.js
+9
-1
app/assets/javascripts/mr_notes/stores/actions/mutators.js
app/assets/javascripts/mr_notes/stores/actions/mutators.js
+0
-11
spec/frontend/mr_notes/stores/actions_spec.js
spec/frontend/mr_notes/stores/actions_spec.js
+1
-1
No files found.
app/assets/javascripts/mr_notes/stores/actions.js
View file @
71d146f1
export
*
from
'
./actions/mutators
'
;
import
types
from
'
./mutation_types
'
;
export
function
setActiveTab
({
commit
},
tab
)
{
commit
(
types
.
SET_ACTIVE_TAB
,
tab
);
}
export
function
setEndpoints
({
commit
},
endpoints
)
{
commit
(
types
.
SET_ENDPOINTS
,
endpoints
);
}
app/assets/javascripts/mr_notes/stores/actions/mutators.js
deleted
100644 → 0
View file @
49a88f54
import
types
from
'
../mutation_types
'
;
// Actions that exclusively mutate the state (essentially wrappers for `commit`)
export
function
setActiveTab
({
commit
},
tab
)
{
commit
(
types
.
SET_ACTIVE_TAB
,
tab
);
}
export
function
setEndpoints
({
commit
},
endpoints
)
{
commit
(
types
.
SET_ENDPOINTS
,
endpoints
);
}
spec/frontend/mr_notes/stores/actions
/mutators
_spec.js
→
spec/frontend/mr_notes/stores/actions_spec.js
View file @
71d146f1
import
testAction
from
'
helpers/vuex_action_helper
'
;
import
{
setEndpoints
}
from
'
~/mr_notes/stores/actions
/mutators
'
;
import
{
setEndpoints
}
from
'
~/mr_notes/stores/actions
'
;
import
mutationTypes
from
'
~/mr_notes/stores/mutation_types
'
;
describe
(
'
MR Notes Mutator Actions
'
,
()
=>
{
...
...
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