user mention (#3771)
This commit is contained in:
@@ -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}`);
|
||||
},
|
||||
|
Reference in New Issue
Block a user