user mention (#3771)

This commit is contained in:
MeiMei 2018-12-27 23:14:30 +09:00 committed by syuilo
parent 8573e258f8
commit fdd42fc2d7
11 changed files with 68 additions and 2 deletions

View file

@ -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}`);
},