Skip to content
Snippets Groups Projects
Commit 72d72de5 authored by Titus Netland's avatar Titus Netland
Browse files

Community home fix, so when logged in you can see members

parent 38b990d5
No related branches found
No related tags found
1 merge request!59Community home fix, so when logged in you can see members
Pipeline #178206 passed with stage
in 48 seconds
<template>
<section class="w-full px-5 py-4 mx-auto rounded-md">
<div>
<img
class="cursor-pointer h-8 float-right"
v-if="isLoggedIn"
src="@/assets/members.png"
alt="Medlemmer"
@click="$router.push('/group/:id/memberlist')"
/>
</div>
<CommunityHeader :admin-status="false" :community="community" class="mb-5"/>
<!-- Search field -->
......@@ -64,6 +74,7 @@ export default {
data() {
return {
isLoggedIn: false,
items: [],
item: {
img: "",
......@@ -87,6 +98,7 @@ export default {
},
},
beforeMount() {
if (this.$store.state.user.token !== null){this.isLoggedIn = true}
this.getCommunityFromAPI(); //To get the id of the community before mounting the view
this.getListingsOfCommunityFromAPI();
}
......
......@@ -96,7 +96,6 @@ const routes = [
path: "/community/:communityID",
name: "GroupHome",
component: () => import("../views/CommunityViews/CommunityHomeView.vue"),
beforeEnter: guardRoute,
},
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment