Skip to content

Commit 871da79

Browse files
committed
Mark shared camps on camp list
1 parent 4f5ac9a commit 871da79

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

frontend/src/components/camp/CampListItem.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
<v-list-item-content>
44
<v-list-item-title class="d-flex gap-x-2 justify-space-between">
55
<strong class="whitespace-normal">{{ camp.title }}</strong>
6+
<v-chip
7+
v-if="camp.isShared === true"
8+
x-small
9+
outlined
10+
color="primary"
11+
:to="adminRoute(camp)"
12+
class="align-self-center px-1"
13+
>{{ $tc('components.camp.campListItem.public') }}</v-chip
14+
>
15+
<span class="flex-grow-1"></span>
616
<span>{{ date }}</span>
717
</v-list-item-title>
818
<v-list-item-subtitle class="d-flex gap-2 flex-wrap-reverse justify-space-between">
@@ -14,7 +24,7 @@
1424
</template>
1525

1626
<script>
17-
import { campRoute } from '@/router.js'
27+
import { campRoute, adminRoute } from '@/router.js'
1828
export default {
1929
name: 'CampListItem',
2030
props: {
@@ -36,7 +46,7 @@ export default {
3646
.join(' | ')
3747
},
3848
},
39-
methods: { campRoute },
49+
methods: { campRoute, adminRoute },
4050
}
4151
</script>
4252

frontend/src/locales/de.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
"campInvitations": {
5757
"title": "Einladen"
5858
},
59+
"campListItem": {
60+
"public": "Öffentlich"
61+
},
5962
"campMembers": {
6063
"title": "Mitglieder"
6164
},

frontend/src/locales/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
"campInvitations": {
5757
"title": "Invite"
5858
},
59+
"campListItem": {
60+
"public": "public"
61+
},
5962
"campMembers": {
6063
"title": "Members"
6164
},

0 commit comments

Comments
 (0)