user mention (#3771)
This commit is contained in:
parent
8573e258f8
commit
fdd42fc2d7
11 changed files with 68 additions and 2 deletions
|
|
@ -17,6 +17,13 @@ export default Vue.extend({
|
|||
computed: {
|
||||
items(): any[] {
|
||||
return concat(intersperse([null], [
|
||||
[
|
||||
[{
|
||||
icon: 'at',
|
||||
text: this.$t('mention'),
|
||||
action: this.mention
|
||||
}]
|
||||
],
|
||||
[
|
||||
[{
|
||||
icon: 'info-circle',
|
||||
|
|
@ -66,6 +73,10 @@ export default Vue.extend({
|
|||
},
|
||||
|
||||
methods: {
|
||||
mention() {
|
||||
this.$post({ mention: this.note.user });
|
||||
},
|
||||
|
||||
detail() {
|
||||
this.$router.push(`/notes/${this.note.id}`);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue