aboutsummaryrefslogtreecommitdiff
path: root/src/components/mention_link/mention_link.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-06-08 12:58:28 +0300
committerHenry Jameson <me@hjkos.com>2021-06-08 12:58:28 +0300
commit9ea370033af450c0d5e4650a7c10f0e1ffec911c (patch)
treea23f0aa79bf50f4e6d7dca8aac2116caa221b97b /src/components/mention_link/mention_link.js
parent3abd357694c29c84d213d7d2a7a954ab2a591da0 (diff)
configurable mentions placement
Diffstat (limited to 'src/components/mention_link/mention_link.js')
-rw-r--r--src/components/mention_link/mention_link.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/components/mention_link/mention_link.js b/src/components/mention_link/mention_link.js
index 465c7d00..8a93e8a3 100644
--- a/src/components/mention_link/mention_link.js
+++ b/src/components/mention_link/mention_link.js
@@ -13,11 +13,6 @@ const MentionLink = {
required: true,
type: String
},
- origattrs: {
- required: false,
- type: Object,
- default: {}
- },
firstMention: {
required: false,
type: Boolean,
@@ -56,6 +51,12 @@ const MentionLink = {
highlightClass () {
if (this.highlight) return highlightClass(this.user)
},
+ oldPlace () {
+ return this.mergedConfig.mentionsOldPlace
+ },
+ oldStyle () {
+ return this.mergedConfig.mentionsOldStyle
+ },
style () {
if (this.highlight) {
const {
@@ -72,7 +73,8 @@ const MentionLink = {
{
'-you': this.isYou,
'-highlighted': this.highlight,
- '-firstMention': this.firstMention
+ '-firstMention': this.firstMention,
+ '-oldStyle': this.oldStyle
},
this.highlightType
]