From d370b354903f72d6b2a674b49e69b9843d441255 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sun, 4 Aug 2024 23:40:25 +0200 Subject: [PATCH] Separated stash create dialog component. --- components/stashes/create.vue | 61 ++++++++++++++++++++++++++ components/stashes/heart.vue | 17 +++++++- components/stashes/menu.vue | 24 +++++++++- pages/entities/@entitySlug/+Page.vue | 2 +- pages/scene/+Page.vue | 1 + pages/users/@username/+Page.vue | 65 +++------------------------- src/stashes.js | 4 +- static | 2 +- 8 files changed, 110 insertions(+), 66 deletions(-) create mode 100644 components/stashes/create.vue diff --git a/components/stashes/create.vue b/components/stashes/create.vue new file mode 100644 index 0000000..a75a1b4 --- /dev/null +++ b/components/stashes/create.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/components/stashes/heart.vue b/components/stashes/heart.vue index a9b9dd7..656c76e 100644 --- a/components/stashes/heart.vue +++ b/components/stashes/heart.vue @@ -21,6 +21,7 @@ :item-stashes="itemStashes" @stash="(stash) => stashItem(stash)" @unstash="(stash) => unstashItem(stash)" + @create="showStashDialog = true" /> @@ -74,20 +75,27 @@ :item-stashes="itemStashes" @stash="(stash) => stashItem(stash)" @unstash="(stash) => unstashItem(stash)" + @create="showStashDialog = true" /> + +