Separated user page stash component.

This commit is contained in:
DebaucheryLibrarian
2021-03-20 02:49:17 +01:00
parent 5577e4fee5
commit e88cf4e3f4
7 changed files with 218 additions and 145 deletions

View File

@@ -67,6 +67,12 @@ function initStashesActions(store, _router) {
return curateStash(stash);
}
async function createStash(context, stash) {
const newStash = await post('/stashes', stash);
return newStash;
}
async function updateStash(context, { stashId, stash }) {
const newStash = await patch(`/stashes/${stashId}`, stash);
@@ -98,6 +104,7 @@ function initStashesActions(store, _router) {
}
return {
createStash,
fetchStash,
stashActor,
stashScene,