mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Add users to post for mentions
This commit is contained in:
parent
d72b2ed271
commit
f6cf05743a
@ -121,6 +121,7 @@
|
||||
<ds-card>
|
||||
<no-ssr>
|
||||
<hc-editor
|
||||
:users="users"
|
||||
:value="form.content"
|
||||
@input="updateEditorContent"
|
||||
/>
|
||||
@ -216,7 +217,8 @@ export default {
|
||||
disabled: false,
|
||||
form: {
|
||||
content: ''
|
||||
}
|
||||
},
|
||||
users: []
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@ -388,6 +390,19 @@ export default {
|
||||
}
|
||||
},
|
||||
fetchPolicy: 'cache-and-network'
|
||||
},
|
||||
User: {
|
||||
query() {
|
||||
return gql(`{
|
||||
User(orderBy: slug_asc) {
|
||||
id
|
||||
slug
|
||||
}
|
||||
}`)
|
||||
},
|
||||
result(result) {
|
||||
this.users = result.data.User
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user