forked from DebaucheryLibrarian/traxxx
Added delete stash icons and dialog.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -19,6 +19,7 @@ function initUsersActions(store, _router) {
|
||||
name
|
||||
slug
|
||||
public
|
||||
deletable
|
||||
actors: stashesActors {
|
||||
comment
|
||||
actor {
|
||||
|
||||
Reference in New Issue
Block a user