Added delete stash icons and dialog.

This commit is contained in:
DebaucheryLibrarian
2021-03-20 23:03:13 +01:00
parent 07643870cd
commit eee47111a6
14 changed files with 204 additions and 33 deletions

View File

@@ -21,6 +21,7 @@ function initStashesActions(store, _router) {
name
slug
public
deletable
user {
id
username
@@ -79,6 +80,10 @@ function initStashesActions(store, _router) {
return newStash;
}
async function removeStash(context, stashId) {
await del(`/stashes/${stashId}`);
}
async function stashActor(context, { actorId, stashId }) {
await post(`/stashes/${stashId}/actors`, { actorId });
}
@@ -106,6 +111,7 @@ function initStashesActions(store, _router) {
return {
createStash,
fetchStash,
removeStash,
stashActor,
stashScene,
stashMovie,

View File

@@ -19,6 +19,7 @@ function initUsersActions(store, _router) {
name
slug
public
deletable
actors: stashesActors {
comment
actor {