forked from DebaucheryLibrarian/traxxx
Refreshing stash page when unstashing scene. Addressed stash preview overflowing on user page.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
:release="release"
|
||||
:referer="referer"
|
||||
:index="index"
|
||||
@stash="isStashed => $emit('stash', isStashed)"
|
||||
/>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -63,6 +64,7 @@ export default {
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
emits: ['stash'],
|
||||
computed: {
|
||||
range,
|
||||
sfw,
|
||||
|
||||
@@ -155,6 +155,8 @@ async function stashScene() {
|
||||
sceneId: this.release.id,
|
||||
stashId: this.$store.getters.favorites.id,
|
||||
});
|
||||
|
||||
this.$emit('stash', true);
|
||||
} catch (error) {
|
||||
this.stashed = false;
|
||||
}
|
||||
@@ -168,6 +170,8 @@ async function unstashScene() {
|
||||
sceneId: this.release.id,
|
||||
stashId: this.$store.getters.favorites.id,
|
||||
});
|
||||
|
||||
this.$emit('stash', false);
|
||||
} catch (error) {
|
||||
this.stashed = true;
|
||||
}
|
||||
@@ -183,6 +187,7 @@ export default {
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
emits: ['stash'],
|
||||
data() {
|
||||
return {
|
||||
stashed: this.release.isStashed,
|
||||
|
||||
Reference in New Issue
Block a user