diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-01-31 11:35:18 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-01-31 11:35:18 +0900 |
| commit | acd64f58e382dfa3db51dfabd61e4dae48d7b87b (patch) | |
| tree | caf496e0d377c060eb10a1e3dbad0350c39137c7 /src/client/components/notification.vue | |
| parent | Add patreon link (diff) | |
| download | sharkey-acd64f58e382dfa3db51dfabd61e4dae48d7b87b.tar.gz sharkey-acd64f58e382dfa3db51dfabd61e4dae48d7b87b.tar.bz2 sharkey-acd64f58e382dfa3db51dfabd61e4dae48d7b87b.zip | |
Resolve #2230
Diffstat (limited to 'src/client/components/notification.vue')
| -rw-r--r-- | src/client/components/notification.vue | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/components/notification.vue b/src/client/components/notification.vue index e325f0adb6..6a9129e38e 100644 --- a/src/client/components/notification.vue +++ b/src/client/components/notification.vue @@ -37,7 +37,7 @@ <router-link v-if="notification.type === 'quote'" class="text" :to="notification.note | notePage" :title="getNoteSummary(notification.note)"> <mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="nowrap" :custom-emojis="notification.note.emojis"/> </router-link> - <span v-if="notification.type === 'follow'" class="text" style="opacity: 0.6;">{{ $t('youGotNewFollower') }}</span> + <span v-if="notification.type === 'follow'" class="text" style="opacity: 0.6;">{{ $t('youGotNewFollower') }}<div v-if="!nowrap"><mk-follow-button :user="notification.user"/></div></span> <span v-if="notification.type === 'followRequestAccepted'" class="text" style="opacity: 0.6;">{{ $t('followRequestAccepted') }}</span> <span v-if="notification.type === 'receiveFollowRequest'" class="text" style="opacity: 0.6;">{{ $t('receiveFollowRequest') }}<div v-if="!nowrap && !followRequestDone"><button class="_textButton" @click="acceptFollowRequest()">{{ $t('accept') }}</button> | <button class="_textButton" @click="rejectFollowRequest()">{{ $t('reject') }}</button></div></span> </div> @@ -50,10 +50,13 @@ import { faPlus, faQuoteLeft, faQuoteRight, faRetweet, faReply, faAt, faCheck } import { faClock } from '@fortawesome/free-regular-svg-icons'; import getNoteSummary from '../../misc/get-note-summary'; import XReactionIcon from './reaction-icon.vue'; +import MkFollowButton from './follow-button.vue'; +import i18n from '../i18n'; export default Vue.extend({ + i18n, components: { - XReactionIcon + XReactionIcon, MkFollowButton }, props: { notification: { |