summaryrefslogtreecommitdiff
path: root/src/client/components/notification.vue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-07-25 01:36:39 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-07-25 01:36:39 +0900
commit9c30b23358699a530f2bcb0f5ae6efe17146bcb3 (patch)
treed57bb7911e273fcfed0de31c89101934d0ea2c8b /src/client/components/notification.vue
parentFix #6566 (#6577) (diff)
downloadmisskey-9c30b23358699a530f2bcb0f5ae6efe17146bcb3.tar.gz
misskey-9c30b23358699a530f2bcb0f5ae6efe17146bcb3.tar.bz2
misskey-9c30b23358699a530f2bcb0f5ae6efe17146bcb3.zip
refactor(client): Use v-t for i18n
Diffstat (limited to 'src/client/components/notification.vue')
-rw-r--r--src/client/components/notification.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/components/notification.vue b/src/client/components/notification.vue
index 9e4806f05f..e5b82a6465 100644
--- a/src/client/components/notification.vue
+++ b/src/client/components/notification.vue
@@ -47,9 +47,9 @@
<fa :icon="faQuoteRight"/>
</router-link>
<span v-if="notification.type === 'follow'" class="text" style="opacity: 0.6;">{{ $t('youGotNewFollower') }}<div v-if="full"><mk-follow-button :user="notification.user" :full="true"/></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="full && !followRequestDone"><button class="_textButton" @click="acceptFollowRequest()">{{ $t('accept') }}</button> | <button class="_textButton" @click="rejectFollowRequest()">{{ $t('reject') }}</button></div></span>
- <span v-if="notification.type === 'groupInvited'" class="text" style="opacity: 0.6;">{{ $t('groupInvited') }}: <b>{{ notification.invitation.group.name }}</b><div v-if="full && !groupInviteDone"><button class="_textButton" @click="acceptGroupInvitation()">{{ $t('accept') }}</button> | <button class="_textButton" @click="rejectGroupInvitation()">{{ $t('reject') }}</button></div></span>
+ <span v-if="notification.type === 'followRequestAccepted'" class="text" style="opacity: 0.6;" v-t="'followRequestAccepted'"></span>
+ <span v-if="notification.type === 'receiveFollowRequest'" class="text" style="opacity: 0.6;">{{ $t('receiveFollowRequest') }}<div v-if="full && !followRequestDone"><button class="_textButton" @click="acceptFollowRequest()" v-t="'accept'"></button> | <button class="_textButton" @click="rejectFollowRequest()" v-t="'reject'"></button></div></span>
+ <span v-if="notification.type === 'groupInvited'" class="text" style="opacity: 0.6;">{{ $t('groupInvited') }}: <b>{{ notification.invitation.group.name }}</b><div v-if="full && !groupInviteDone"><button class="_textButton" @click="acceptGroupInvitation()" v-t="'accept'"></button> | <button class="_textButton" @click="rejectGroupInvitation()" v-t="'reject'"></button></div></span>
<span v-if="notification.type === 'app'" class="text">
<mfm :text="notification.body" :nowrap="!full"/>
</span>