style in groupList for locationName and radius

This commit is contained in:
ogerly 2022-09-15 13:13:51 +02:00
parent bc8cba13b3
commit a5e0794ec8
2 changed files with 6 additions and 13 deletions

View File

@ -30,6 +30,10 @@
<ds-icon :name="category.icon"></ds-icon>
{{ category.name }}
</ds-chip>
<ds-space margin="x-small">
<div v-if="item.locationName">{{ item.locationName }}</div>
<div v-if="item.actionRadius">{{ item.actionRadius }}</div>
</ds-space>
</ds-space>
</ds-space>
</ds-flex-item>
@ -54,23 +58,10 @@ export default {
items: { type: Array, default: () => [] },
},
methods: {
removePending() {
alert('removePending group')
},
editGroup(item) {
this.$router.push({ path: `/group/edit/${item.id}` })
},
deleteGroup() {
alert('delete group')
},
unfollowGroup() {
alert('unfollow group')
},
async joinGroup(value) {
alert('addMemeberToGroup group')
console.log(value)
console.log(this.$store.getters['auth/user'].id)
const { id } = value
const variables = { groupId: id, userId: this.$store.getters['auth/user'].id }
try {

View File

@ -29,6 +29,8 @@ export default {
},
methods: {
async createGroup(value) {
console.log('createGroup')
console.log(value)
const { name, about, description, groupType, actionRadius, locationName, categoryIds } = value
const variables = { name, about, description, groupType, actionRadius, locationName, categoryIds }
try {