gamebrary/src/pages/ProfilesPage.vue

41 lines
777 B
Vue
Raw Normal View History

2021-04-24 08:08:35 +00:00
<template lang="html">
<b-container>
<page-title
title="Profiles"
/>
<router-link
class="bg-white p-3 mb-2"
:to="{ name: 'public-profile', params: { userName: profile.userName } }"
v-for="profile in profiles"
:key="profile.userName"
>
2021-04-27 05:27:45 +00:00
<img :src="profile.profileImage" :alt="profile.userName" width="50">
<small>{{ `@${profile.userName}` }}</small>
2021-04-24 08:08:35 +00:00
</router-link>
</b-container>
</template>
<script>
import { mapState } from 'vuex';
export default {
computed: {
...mapState(['profiles']),
},
mounted() {
this.loadProfiles();
},
methods: {
loadProfiles() {
this.$store.dispatch('LOAD_PROFILES');
},
},
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
</style>