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

Merge branch 'new_community_icon' into 'main'

New Community icon added

See merge request !52
parents cd66c176 8f422f81
No related branches found
No related tags found
1 merge request!52New Community icon added
Pipeline #177639 passed
src/assets/newCommunity.png

19 KiB

<template>
<div>
<div id="myGroups">
<div>Mine grupper:</div>
<img
class="cursor-pointer h-8 mr-4 mt-4 float-right"
v-if="isLoggedIn"
src="@/assets/newCommunity.png"
alt="Legg til gruppe"
@click="$router.push('/createNewGroup')"
/>
</div>
<div>
<div id="myGroups" v-if="isLoggedIn">
<div class="m-4" >Mine grupper:</div>
<group-list :groupList="myGroups" />
</div>
<div id="localGroups">
<div>Offentlige grupper:</div>
<div class="m-4">Offentlige grupper:</div>
<group-list :groupList="localGroups" />
</div>
</div>
</template>
<script>
......@@ -19,6 +29,7 @@ export default {
name: "HomeView",
data() {
return {
isLoggedIn: false,
myGroups: [],
localGroups: [],
};
......@@ -37,6 +48,9 @@ export default {
async created() {
await this.getMyGroups();
await this.getPotentialGroups();
},
if(this.$store.state.user.token !== null){
this.isLoggedIn = true
}
},
};
</script>
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