Added dedicated stash page. Using preview tiles for stashes on user page.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user