mirror of
https://github.com/romancm/gamebrary
synced 2024-12-22 09:03:08 +00:00
39 lines
696 B
Vue
39 lines
696 B
Vue
<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"
|
|
>
|
|
<small>{{ profile.userName }}</small>
|
|
</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>
|