Refreshing stash page when unstashing scene. Addressed stash preview overflowing on user page.

This commit is contained in:
DebaucheryLibrarian
2021-03-20 02:23:24 +01:00
parent 42a4fe581f
commit 06e6d3940b
4 changed files with 11 additions and 3 deletions

View File

@@ -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,

View File

@@ -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,