Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-frontend
Manage
Activity
Members
Labels
Plan
Issues
21
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106_2022_02
boco-frontend
Commits
72d72de5
Commit
72d72de5
authored
2 years ago
by
Titus Netland
Browse files
Options
Downloads
Patches
Plain Diff
Community home fix, so when logged in you can see members
parent
38b990d5
No related branches found
Branches containing commit
No related tags found
1 merge request
!59
Community home fix, so when logged in you can see members
Pipeline
#178206
passed with stage
Stage:
in 48 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/CommunityComponents/CommunityHome.vue
+12
-0
12 additions, 0 deletions
src/components/CommunityComponents/CommunityHome.vue
src/router/index.js
+0
-1
0 additions, 1 deletion
src/router/index.js
with
12 additions
and
1 deletion
src/components/CommunityComponents/CommunityHome.vue
+
12
−
0
View file @
72d72de5
<
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
();
}
...
...
This diff is collapsed.
Click to expand it.
src/router/index.js
+
0
−
1
View file @
72d72de5
...
...
@@ -96,7 +96,6 @@ const routes = [
path
:
"
/community/:communityID
"
,
name
:
"
GroupHome
"
,
component
:
()
=>
import
(
"
../views/CommunityViews/CommunityHomeView.vue
"
),
beforeEnter
:
guardRoute
,
},
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment