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
dde62ccf
Commit
dde62ccf
authored
May 14, 2018
by
Dennis Tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo in `endpoint`
parent
f1a22c6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
doc/development/fe_guide/vuex.md
doc/development/fe_guide/vuex.md
+2
-2
No files found.
doc/development/fe_guide/vuex.md
View file @
dde62ccf
...
@@ -87,7 +87,7 @@ In this file, we will write the actions that will call the respective mutations:
...
@@ -87,7 +87,7 @@ In this file, we will write the actions that will call the respective mutations:
export
const
fetchUsers
=
({
state
,
dispatch
})
=>
{
export
const
fetchUsers
=
({
state
,
dispatch
})
=>
{
dispatch
(
'
requestUsers
'
);
dispatch
(
'
requestUsers
'
);
axios
.
get
(
state
.
endoint
)
axios
.
get
(
state
.
end
p
oint
)
.
then
(({
data
})
=>
dispatch
(
'
receiveUsersSuccess
'
,
data
))
.
then
(({
data
})
=>
dispatch
(
'
receiveUsersSuccess
'
,
data
))
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
dispatch
(
'
receiveUsersError
'
,
error
)
dispatch
(
'
receiveUsersError
'
,
error
)
...
@@ -102,7 +102,7 @@ In this file, we will write the actions that will call the respective mutations:
...
@@ -102,7 +102,7 @@ In this file, we will write the actions that will call the respective mutations:
export
const
addUser
=
({
state
,
dispatch
},
user
)
=>
{
export
const
addUser
=
({
state
,
dispatch
},
user
)
=>
{
dispatch
(
'
requestAddUser
'
);
dispatch
(
'
requestAddUser
'
);
axios
.
post
(
state
.
endoint
,
user
)
axios
.
post
(
state
.
end
p
oint
,
user
)
.
then
(({
data
})
=>
dispatch
(
'
receiveAddUserSuccess
'
,
data
))
.
then
(({
data
})
=>
dispatch
(
'
receiveAddUserSuccess
'
,
data
))
.
catch
((
error
)
=>
dispatch
(
'
receiveAddUserError
'
,
error
));
.
catch
((
error
)
=>
dispatch
(
'
receiveAddUserError
'
,
error
));
}
}
...
...
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