From 828b1c78f9304d400a206a25f4f43999bc5908bc Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Sat, 15 Dec 2018 06:16:44 +0300 Subject: Implement user_profile.spec.js --- src/components/user_card_content/user_card_content.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/user_card_content/user_card_content.js') diff --git a/src/components/user_card_content/user_card_content.js b/src/components/user_card_content/user_card_content.js index abdac58e..cdb1a850 100644 --- a/src/components/user_card_content/user_card_content.js +++ b/src/components/user_card_content/user_card_content.js @@ -41,9 +41,6 @@ export default { const days = Math.ceil((new Date() - new Date(this.user.created_at)) / (60 * 60 * 24 * 1000)) return Math.round(this.user.statuses_count / days) }, - userProfileLink (user) { - return generateProfileLink(user.id, user.screen_name) - }, userHighlightType: { get () { const data = this.$store.state.config.highlight[this.user.screen_name] @@ -110,6 +107,9 @@ export default { if (target.tagName === 'A') { window.open(target.href, '_blank') } + }, + userProfileLink (user) { + return generateProfileLink(user.id, user.screen_name) } } } -- cgit v1.2.3-70-g09d2