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>
|
<ds-icon :name="category.icon"></ds-icon>
|
||||||
{{ category.name }}
|
{{ category.name }}
|
||||||
</ds-chip>
|
</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-space>
|
</ds-space>
|
||||||
</ds-flex-item>
|
</ds-flex-item>
|
||||||
@ -54,23 +58,10 @@ export default {
|
|||||||
items: { type: Array, default: () => [] },
|
items: { type: Array, default: () => [] },
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
removePending() {
|
|
||||||
alert('removePending group')
|
|
||||||
},
|
|
||||||
editGroup(item) {
|
editGroup(item) {
|
||||||
this.$router.push({ path: `/group/edit/${item.id}` })
|
this.$router.push({ path: `/group/edit/${item.id}` })
|
||||||
},
|
},
|
||||||
deleteGroup() {
|
|
||||||
alert('delete group')
|
|
||||||
},
|
|
||||||
unfollowGroup() {
|
|
||||||
alert('unfollow group')
|
|
||||||
},
|
|
||||||
async joinGroup(value) {
|
async joinGroup(value) {
|
||||||
alert('addMemeberToGroup group')
|
|
||||||
console.log(value)
|
|
||||||
console.log(this.$store.getters['auth/user'].id)
|
|
||||||
|
|
||||||
const { id } = value
|
const { id } = value
|
||||||
const variables = { groupId: id, userId: this.$store.getters['auth/user'].id }
|
const variables = { groupId: id, userId: this.$store.getters['auth/user'].id }
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -29,6 +29,8 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async createGroup(value) {
|
async createGroup(value) {
|
||||||
|
console.log('createGroup')
|
||||||
|
console.log(value)
|
||||||
const { name, about, description, groupType, actionRadius, locationName, categoryIds } = value
|
const { name, about, description, groupType, actionRadius, locationName, categoryIds } = value
|
||||||
const variables = { name, about, description, groupType, actionRadius, locationName, categoryIds }
|
const variables = { name, about, description, groupType, actionRadius, locationName, categoryIds }
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user