Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractal.js
Commits
39a1c7ae
Commit
39a1c7ae
authored
Mar 01, 2018
by
Sascha Herzinger
Browse files
API for state manager changed
parent
c027add5
Changes
1
Show whitespace changes
Inline
Side-by-side
src/services/request-manager.js
View file @
39a1c7ae
...
...
@@ -128,7 +128,11 @@ export default class {
* @returns {AxiosPromise} An ES6 promise.
*/
saveState
(
state
)
{
return
this
.
_axios
.
post
(
'
/state
'
,
state
)
return
this
.
_axios
.
post
(
'
/state
'
,
{
state
,
handler
:
this
.
_handler
,
server
:
this
.
_dataSource
})
}
/**
...
...
@@ -140,9 +144,7 @@ export default class {
*/
requestStateAccess
(
stateID
)
{
return
this
.
_axios
.
post
(
`/state/
${
stateID
}
`
,
{
auth
:
this
.
_getAuth
(),
handler
:
this
.
_handler
,
server
:
this
.
_dataSource
auth
:
this
.
_getAuth
()
})
}
...
...
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