Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
8f679311
Commit
8f679311
authored
2 years ago
by
Titus Netland
Browse files
Options
Downloads
Patches
Plain Diff
Navbar position fix
parent
0097cf66
No related branches found
Branches containing commit
No related tags found
1 merge request
!78
Component styling
Pipeline
#179301
failed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/CommunityViews/CommunityView.vue
+9
-10
9 additions, 10 deletions
src/views/CommunityViews/CommunityView.vue
with
9 additions
and
10 deletions
src/views/CommunityViews/CommunityView.vue
+
9
−
10
View file @
8f679311
...
...
@@ -3,22 +3,21 @@
<div
class=
"flex flex-row p-4 relative"
>
<p
class=
"text-xl md:text-2xl text-gray-600 font-medium w-full"
>
Mine grupper
</p>
<UserAddIcon
class=
"cursor-pointer max-h-6 max-w-6 float-right grow"
@
click=
"$router.push('/newCommunity')"
v-if=
"loggedIn"
alt=
"Lag ett nytt felleskap"
class=
"cursor-pointer max-h-6 max-w-6 float-right grow"
@
click=
"$router.push('/newCommunity')"
alt=
"Opprett ny gruppe"
/>
</div>
<CommunityList
:communities=
"myCommunities"
:member=
"true"
/>
<CommunityList
:communities=
"myCommunities"
:member=
"true"
/>
</div>
<p
class=
"text-xl md:text-2xl text-gray-600 font-medium w-full
m
-4"
>
Offentlige grupper
</p>
<CommunityList
:communities=
"publicCommunities"
:member=
"false"
/>
<p
class=
"text-xl md:text-2xl text-gray-600 font-medium w-full
p
-4"
>
Offentlige grupper
</p>
<CommunityList
:communities=
"publicCommunities"
:member=
"false"
/>
</
template
>
<
script
>
import
CommunityList
from
"
@/components/CommunityComponents/CommunityList.vue
"
;
import
{
getMyGroups
,
getVisibleGroups
}
from
"
@/utils/apiutil
"
;
import
{
UserAddIcon
}
from
"
@heroicons/vue/outline
"
;
import
{
getMyGroups
,
getVisibleGroups
}
from
"
@/utils/apiutil
"
;
import
{
UserAddIcon
}
from
"
@heroicons/vue/outline
"
;
export
default
{
name
:
"
HomeView
"
,
...
...
@@ -42,7 +41,7 @@ export default {
// Remove all of the user's communities from the public communities arrays
this
.
publicCommunities
=
this
.
publicCommunities
.
filter
(
(
val
)
=>
!
this
.
myCommunities
.
includes
(
val
)
(
val
)
=>
!
this
.
myCommunities
.
includes
(
val
)
);
},
};
...
...
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