iceshrimp #3
4 changed files with 15 additions and 1 deletions
|
|
@ -33,6 +33,7 @@
|
|||
- this wasn't intentional, but keeping the old names would require way more work
|
||||
- script to get new emojis is included for future unicode versions
|
||||
- add toggle for showing post edit notifications
|
||||
- add support for accepted follow request notifications
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -94,6 +94,14 @@
|
|||
{{ ' ' }}
|
||||
<small>{{ $t('notifications.followed_you') }}</small>
|
||||
</span>
|
||||
<span v-if="notification.type === 'follow_request_accepted'">
|
||||
<FAIcon
|
||||
class="type-icon"
|
||||
icon="user-plus"
|
||||
/>
|
||||
{{ ' ' }}
|
||||
<small>{{ $t('notifications.follow_request_accepted') }}</small>
|
||||
</span>
|
||||
<span v-if="notification.type === 'follow_request'">
|
||||
<FAIcon
|
||||
class="type-icon"
|
||||
|
|
@ -203,7 +211,7 @@
|
|||
</button>
|
||||
</span>
|
||||
<div
|
||||
v-if="notification.type === 'follow' || notification.type === 'follow_request'"
|
||||
v-if="notification.type === 'follow' || notification.type === 'follow_request' || notification.type === 'follow_request_accepted'"
|
||||
class="follow-text"
|
||||
>
|
||||
<router-link
|
||||
|
|
|
|||
|
|
@ -333,6 +333,7 @@
|
|||
"error": "Error fetching notifications: {0}",
|
||||
"favorited_you": "favorited your post",
|
||||
"follow_request": "wants to follow you",
|
||||
"follow_request_accepted": "accepted your follow request",
|
||||
"followed_you": "followed you",
|
||||
"load_older": "Load older notifications",
|
||||
"migrated_to": "migrated to",
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ export const visibleTypes = store => {
|
|||
rootState.config.notificationVisibility.polls && 'poll',
|
||||
rootState.config.notificationVisibility.bites && 'bite',
|
||||
rootState.config.notificationVisibility.bites && 'bite_note',
|
||||
rootState.config.notificationVisibility.followRequest && 'follow_request_accepted',
|
||||
rootState.config.notificationVisibility.edits && 'update'
|
||||
].filter(_ => _))
|
||||
}
|
||||
|
|
@ -111,6 +112,9 @@ export const prepareNotificationObject = (notification, i18n, store) => {
|
|||
case 'bite_note':
|
||||
i18nString = 'bit_note'
|
||||
break
|
||||
case 'follow_request_accepted':
|
||||
i18nString = 'follow_request_accepted'
|
||||
break
|
||||
case 'update':
|
||||
i18nString = 'edited'
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue