Added dedicated stash page. Using preview tiles for stashes on user page.

This commit is contained in:
DebaucheryLibrarian
2021-03-19 02:36:31 +01:00
parent cc27f202af
commit f0265c2f5d
13 changed files with 470 additions and 36 deletions

View File

@@ -55,14 +55,14 @@
v-show="me && isStashed"
icon="heart7"
class="stash stashed noselect"
@click="unstashRelease"
@click="unstashScene"
/>
<Icon
v-show="me && !isStashed"
icon="heart8"
class="stash unstashed noselect"
@click="stashRelease"
@click="stashScene"
/>
</div>
@@ -251,8 +251,8 @@ async function fetchRelease(scroll = true) {
}
}
async function stashRelease() {
this.$store.dispatch(this.$route.name === 'movie' ? 'stashMovie' : 'stashRelease', {
async function stashScene() {
this.$store.dispatch(this.$route.name === 'movie' ? 'stashMovie' : 'stashScene', {
sceneId: this.release.id,
movieId: this.release.id,
stashId: this.$store.getters.favorites.id,
@@ -261,8 +261,8 @@ async function stashRelease() {
this.fetchRelease(false);
}
async function unstashRelease() {
this.$store.dispatch(this.$route.name === 'movie' ? 'unstashMovie' : 'unstashRelease', {
async function unstashScene() {
this.$store.dispatch(this.$route.name === 'movie' ? 'unstashMovie' : 'unstashScene', {
sceneId: this.release.id,
movieId: this.release.id,
stashId: this.$store.getters.favorites.id,
@@ -323,8 +323,8 @@ export default {
mounted: fetchRelease,
methods: {
fetchRelease,
stashRelease,
unstashRelease,
stashScene,
unstashScene,
},
};
</script>