mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
style in groupList for locationName and radius
This commit is contained in:
parent
bc8cba13b3
commit
a5e0794ec8
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user