Compare commits

..

No commits in common. "76a5ccf3f67611fdd9fc4e3a96ad1029106a3bc6" and "11e043ca2e5bb2133d0fdd79e02cbd58d1069c53" have entirely different histories.

3 changed files with 11 additions and 11 deletions

View File

@ -42,14 +42,14 @@
><Icon icon="blocked" />No thumbnail available</div> ><Icon icon="blocked" />No thumbnail available</div>
<Icon <Icon
v-show="favorited" v-show="stashed"
icon="heart7" icon="heart7"
class="stash stashed" class="stash stashed"
@click.prevent.native="unstashScene" @click.prevent.native="unstashScene"
/> />
<Icon <Icon
v-show="favorited === false" v-show="stashed === false"
icon="heart8" icon="heart8"
class="stash unstashed" class="stash unstashed"
@click.prevent.native="stashScene" @click.prevent.native="stashScene"
@ -148,7 +148,7 @@
import Details from './tile-details.vue'; import Details from './tile-details.vue';
async function stashScene() { async function stashScene() {
this.favorited = true; this.stashed = true;
try { try {
await this.$store.dispatch('stashScene', { await this.$store.dispatch('stashScene', {
@ -158,22 +158,22 @@ async function stashScene() {
this.$emit('stash', true); this.$emit('stash', true);
} catch (error) { } catch (error) {
this.favorited = false; this.stashed = false;
} }
} }
async function unstashScene() { async function unstashScene() {
this.favorited = false; this.stashed = false;
try { try {
await this.$store.dispatch('unstashScene', { this.$store.dispatch('unstashScene', {
sceneId: this.release.id, sceneId: this.release.id,
stashId: this.$store.getters.favorites.id, stashId: this.$store.getters.favorites.id,
}); });
this.$emit('stash', false); this.$emit('stash', false);
} catch (error) { } catch (error) {
this.favorited = true; this.stashed = true;
} }
} }
@ -190,7 +190,7 @@ export default {
emits: ['stash'], emits: ['stash'],
data() { data() {
return { return {
favorited: this.release.isFavorited, stashed: this.release.isStashed,
}; };
}, },
methods: { methods: {

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.190.1", "version": "1.190.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"version": "1.190.1", "version": "1.190.0",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@casl/ability": "^5.2.2", "@casl/ability": "^5.2.2",

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.190.1", "version": "1.190.0",
"description": "All the latest porn releases in one place", "description": "All the latest porn releases in one place",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {