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
ac808b75
Commit
ac808b75
authored
Mar 12, 2021
by
Thomas Randolph
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move mutator actions to a special file just for mutators
parent
395abc98
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
app/assets/javascripts/mr_notes/stores/actions.js
app/assets/javascripts/mr_notes/stores/actions.js
+1
-7
app/assets/javascripts/mr_notes/stores/actions/mutators.js
app/assets/javascripts/mr_notes/stores/actions/mutators.js
+7
-0
app/assets/javascripts/mr_notes/stores/modules/index.js
app/assets/javascripts/mr_notes/stores/modules/index.js
+1
-1
No files found.
app/assets/javascripts/mr_notes/stores/actions.js
View file @
ac808b75
import
types
from
'
./mutation_types
'
;
export
default
{
setActiveTab
({
commit
},
tab
)
{
commit
(
types
.
SET_ACTIVE_TAB
,
tab
);
},
};
export
*
from
'
./actions/mutators
'
;
app/assets/javascripts/mr_notes/stores/actions/mutators.js
0 → 100644
View file @
ac808b75
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
);
}
app/assets/javascripts/mr_notes/stores/modules/index.js
View file @
ac808b75
import
actions
from
'
../actions
'
;
import
*
as
actions
from
'
../actions
'
;
import
getters
from
'
../getters
'
;
import
mutations
from
'
../mutations
'
;
...
...
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