enhance(backend): notify new login (#14673)
* wip * Update CHANGELOG.md * wip * fix * Update index.d.ts * Update SigninService.ts * Update MkNotification.vue
This commit is contained in:
@@ -210,6 +210,12 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif
|
||||
tag: `achievement:${data.body.achievement}`,
|
||||
}];
|
||||
|
||||
case 'login':
|
||||
return [i18n.ts._notification.login, {
|
||||
badge: iconUrl('login-2'),
|
||||
data,
|
||||
}];
|
||||
|
||||
case 'exportCompleted': {
|
||||
const entityName = {
|
||||
antenna: i18n.ts.antennas,
|
||||
|
@@ -50,4 +50,5 @@ export type BadgeNames =
|
||||
| 'quote'
|
||||
| 'repeat'
|
||||
| 'user-plus'
|
||||
| 'users';
|
||||
| 'users'
|
||||
| 'login-2';
|
||||
|
Reference in New Issue
Block a user