add support for "accepted your follow request" notifications
This commit is contained in:
parent
59be915cbd
commit
8f8571cda9
3 changed files with 14 additions and 1 deletions
|
|
@ -94,6 +94,14 @@
|
||||||
{{ ' ' }}
|
{{ ' ' }}
|
||||||
<small>{{ $t('notifications.followed_you') }}</small>
|
<small>{{ $t('notifications.followed_you') }}</small>
|
||||||
</span>
|
</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'">
|
<span v-if="notification.type === 'follow_request'">
|
||||||
<FAIcon
|
<FAIcon
|
||||||
class="type-icon"
|
class="type-icon"
|
||||||
|
|
@ -203,7 +211,7 @@
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
<div
|
<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"
|
class="follow-text"
|
||||||
>
|
>
|
||||||
<router-link
|
<router-link
|
||||||
|
|
|
||||||
|
|
@ -333,6 +333,7 @@
|
||||||
"error": "Error fetching notifications: {0}",
|
"error": "Error fetching notifications: {0}",
|
||||||
"favorited_you": "favorited your post",
|
"favorited_you": "favorited your post",
|
||||||
"follow_request": "wants to follow you",
|
"follow_request": "wants to follow you",
|
||||||
|
"follow_request_accepted": "accepted your follow request",
|
||||||
"followed_you": "followed you",
|
"followed_you": "followed you",
|
||||||
"load_older": "Load older notifications",
|
"load_older": "Load older notifications",
|
||||||
"migrated_to": "migrated to",
|
"migrated_to": "migrated to",
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ export const visibleTypes = store => {
|
||||||
rootState.config.notificationVisibility.polls && 'poll',
|
rootState.config.notificationVisibility.polls && 'poll',
|
||||||
rootState.config.notificationVisibility.bites && 'bite',
|
rootState.config.notificationVisibility.bites && 'bite',
|
||||||
rootState.config.notificationVisibility.bites && 'bite_note',
|
rootState.config.notificationVisibility.bites && 'bite_note',
|
||||||
|
rootState.config.notificationVisibility.followRequest && 'follow_request_accepted',
|
||||||
rootState.config.notificationVisibility.edits && 'update'
|
rootState.config.notificationVisibility.edits && 'update'
|
||||||
].filter(_ => _))
|
].filter(_ => _))
|
||||||
}
|
}
|
||||||
|
|
@ -111,6 +112,9 @@ export const prepareNotificationObject = (notification, i18n, store) => {
|
||||||
case 'bite_note':
|
case 'bite_note':
|
||||||
i18nString = 'bit_note'
|
i18nString = 'bit_note'
|
||||||
break
|
break
|
||||||
|
case 'follow_request_accepted':
|
||||||
|
i18nString = 'follow_request_accepted'
|
||||||
|
break
|
||||||
case 'update':
|
case 'update':
|
||||||
i18nString = 'edited'
|
i18nString = 'edited'
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue