Using thumbnail width and height for release banner photos. Preventing user page from reloading when closing the add stash dialog without adding stash.
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
|
||||
<AddStash
|
||||
v-if="showAddStash"
|
||||
@close="fetchUser"
|
||||
@close="closeAddStash"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
@@ -50,10 +50,17 @@ async function fetchUser() {
|
||||
this.user = await this.$store.dispatch('fetchUser', this.$route.params.username);
|
||||
this.isMe = this.user.id === this.$store.state.auth.user?.id;
|
||||
|
||||
this.showAddStash = false;
|
||||
this.pageTitle = this.user?.username;
|
||||
}
|
||||
|
||||
async function closeAddStash(addedStash) {
|
||||
this.showAddStash = false;
|
||||
|
||||
if (addedStash) {
|
||||
await this.fetchUser();
|
||||
}
|
||||
}
|
||||
|
||||
async function mounted() {
|
||||
await this.fetchUser();
|
||||
}
|
||||
@@ -75,6 +82,7 @@ export default {
|
||||
},
|
||||
mounted,
|
||||
methods: {
|
||||
closeAddStash,
|
||||
fetchUser,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user