Skip to content
GitLab
Projects
Groups
Snippets
/
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
Hide 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
Supports
Markdown
0%
Try again
or
attach a new 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